diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2002-11-12 22:48:36 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2002-11-12 22:48:36 +0000 |
| commit | 332ae4a831160246624d90eb4ed00a542a9994b2 (patch) | |
| tree | 0f77aee01faae0ce13eae43cbadd3721c57fe835 /FL | |
| parent | 46d894851e6092869b1397e196af0f5369514804 (diff) | |
Fixed missing undo bug in Fl_Text_Editor. Undo would be performed on
text buffer AND attribute buffer, which in turn confused the undo buffer.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2836 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Text_Buffer.H | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/FL/Fl_Text_Buffer.H b/FL/Fl_Text_Buffer.H index 45771c99e..03dabf8a0 100644 --- a/FL/Fl_Text_Buffer.H +++ b/FL/Fl_Text_Buffer.H @@ -1,5 +1,5 @@ // -// "$Id: Fl_Text_Buffer.H,v 1.3.2.6 2002/11/05 19:53:50 matthiaswm Exp $" +// "$Id: Fl_Text_Buffer.H,v 1.3.2.7 2002/11/12 22:48:36 matthiaswm Exp $" // // Header file for Fl_Text_Buffer class. // @@ -84,6 +84,7 @@ class FL_EXPORT Fl_Text_Buffer { void replace(int start, int end, const char *text); void copy(Fl_Text_Buffer* fromBuf, int fromStart, int fromEnd, int toPos); int undo(int *cp=0); + void canUndo(char flag=1); int insertfile(const char *file, int pos, int buflen = 128*1024); int appendfile(const char *file, int buflen = 128*1024) { return insertfile(file, length(), buflen); } @@ -245,10 +246,12 @@ class FL_EXPORT Fl_Text_Buffer { with something else. This is the else, but of course, things get quite messy when you use it */ + char mCanUndo; /* if this buffer is used for attributes, it must + not do any undo calls */ }; #endif // -// End of "$Id: Fl_Text_Buffer.H,v 1.3.2.6 2002/11/05 19:53:50 matthiaswm Exp $". +// End of "$Id: Fl_Text_Buffer.H,v 1.3.2.7 2002/11/12 22:48:36 matthiaswm Exp $". // |
