April White <april_white <at> sympatico.ca> writes: > > Kein-Hong Man wrote: > > > Bracket with the following (barely tested): > > > > editor.UndoCollection = false > > -- edit stuff here > > editor.UndoCollection = true > > It was recommended to me to use: > local u = scite.SendEditor( SCI_GETUNDOCOLLECTION ) > scite.SendEditor( SCI_SETUNDOCOLLECTION, false ) > > ... > > scite.SendEditor( SCI_SETUNDOCOLLECTION, u ) > > April >
Good point. You can still nicer syntax, though: local hadUndoCollection = editor.UndoCollection editor.UndoCollection = false -- edit stuff here editor.UndoCollection = hadUndoCollection Bruce _______________________________________________ Scite-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scite-interest
