summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-04-14 16:32:23 +0200
committerMatthias Melcher <github@matthiasm.com>2023-04-14 16:32:36 +0200
commitafd3fde5de41cd5c10e0953e25976912cf4cf25f (patch)
tree50fd26c622e4a3a0798a308c972e9118cb9409df /FL
parent7e2defc10d3816eaab14369941a84b68c8d1d2bc (diff)
Memory leak in Input_ #716
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Input_.H6
1 files changed, 6 insertions, 0 deletions
diff --git a/FL/Fl_Input_.H b/FL/Fl_Input_.H
index a7062f5a0..6eacc27ae 100644
--- a/FL/Fl_Input_.H
+++ b/FL/Fl_Input_.H
@@ -384,9 +384,15 @@ public:
/* Undo previous changes to the text buffer. */
int undo();
+ /* Return true if the last operation can be undone. */
+ bool can_undo();
+
/* Redo previous undo operations. */
int redo();
+ /* Return true if there is a redo action in the list. */
+ bool can_redo();
+
/* Copy the yank buffer to the clipboard. */
int copy_cuts();