Bruce Dodson wrote:
April White <april_white <at> sympatico.ca> writes:
Kein-Hong Man wrote:
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 )
Good point. You can still nicer syntax, though:
local hadUndoCollection = editor.UndoCollection
editor.UndoCollection = false
-- edit stuff here
editor.UndoCollection = hadUndoCollection
That's great. Finally it works well.
Thank you for all!
Istvan
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest