From 332ae4a831160246624d90eb4ed00a542a9994b2 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 12 Nov 2002 22:48:36 +0000 Subject: 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 --- src/Fl_Text_Display.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Fl_Text_Display.cxx') diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index d1537d5bf..b61e44798 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Text_Display.cxx,v 1.12.2.35 2002/10/29 17:34:44 easysw Exp $" +// "$Id: Fl_Text_Display.cxx,v 1.12.2.36 2002/11/12 22:48:36 matthiaswm Exp $" // // Copyright 2001-2002 by Bill Spitzak and others. // Original code Copyright Mark Edel. Permission to distribute under @@ -197,6 +197,7 @@ Fl_Text_Display::highlight_data(Fl_Text_Buffer *styleBuffer, mUnfinishedHighlightCB = unfinishedHighlightCB; mHighlightCBArg = cbArg; + mStyleBuffer->canUndo(0); #if 0 // FIXME: this is in nedit code -- is it needed? /* Call TextDSetFont to combine font information from style table and @@ -3028,5 +3029,5 @@ int Fl_Text_Display::handle(int event) { // -// End of "$Id: Fl_Text_Display.cxx,v 1.12.2.35 2002/10/29 17:34:44 easysw Exp $". +// End of "$Id: Fl_Text_Display.cxx,v 1.12.2.36 2002/11/12 22:48:36 matthiaswm Exp $". // -- cgit v1.2.3