Fixed leak in Fl_Text_Buffer #716

This commit is contained in:
Matthias Melcher
2023-04-14 16:54:11 +02:00
parent afd3fde5de
commit e18b5353cd
3 changed files with 40 additions and 4 deletions
+17 -1
View File
@@ -327,13 +327,29 @@ public:
*/
int undo(int *cp=0);
/**
Check if undo is anabled and if the last action can be undone.
\see canUndo()
*/
bool can_undo();
/**
Redo previous undo action.
*/
int redo(int *cp=0);
/**
Lets the undo system know if we can undo changes
Check if undo is anabled and if the last undo action can be redone.
\see canUndo()
*/
bool can_redo();
/**
Enable or disable undo actions for this text buffer.
Undo actions are enable for text buffer by default. If used as a style buffer
in Fl_Text_Display, undo actions are disabled as they are handled by the
text buffer.
\see can_undo()
*/
void canUndo(char flag=1);