How can I save document state, letter by letter, to UNDO and REDO on Scintilla?

95 Views Asked by At

I am creating an IDE using Scintilla in C++. I am trying to create multiple tabs, but every tab must have its own REDO and UNDO state.

This is the behavior I would like to have:

undo and redo letter by letter

This is the behavior I have now: undo and redo erase all text

1

There are 1 best solutions below

0
Supermax197 On

SCI_BEGINUNDOACTION SCI_ENDUNDOACTION Send these two messages to Scintilla to mark the beginning and end of a set of operations that you want to undo all as one operation but that you have to generate as several operations. Alternatively, you can use these to mark a set of operations that you do not want to have combined with the preceding or following operations if they are undone.