Hello,
I have the simple plugin, as following:
import sublime, sublime_plugin
class Simple(sublime_plugin.TextCommand):
...
# undo point 1
edit_insert = self.view.begin_edit()
... insert something ...
self.view.end_edit(edit_insert)
...
# undo point 2
edit_insert = self.view.begin_edit()
... insert something else ...
self.view.end_edit(edit_insert)
My expectation is that this plugin will create TWO different undo “points”. Unfortunatelly Ctrl+Z undoes all changes performed by plugin. Is there any way to create two undo points inside the single command?