X2DGB56U45XYFJNGFZ2PPXYR63BMGFSDJFCE2CWFRMSZFDR253HAC
SIJ5I4NZN5LFATNT5QIWUK75Z5W6P4B4AKNPVYFQ7IVRMOCVWR3AC
RK2ASPN7A55RCEG2YRFZLFXNPSME2VKBE2ZXO257DYZPS5TPXC5QC
5MEJ7XNHNFG2BIX3TFU6PDJHSJOS2Z45L25QAZKFGRW7ZNOFEUKAC
local state = Current_pane.editor_state -- initial state for recording undo operation local before_line = state.cursor1.line local before = snapshot(state, before_line) -- paste
local state = Current_pane.editor_state
-- initial state for recording undo operation
local before_line = state.cursor1.line
local before = snapshot(state, before_line)
-- paste
Text.insert_text(Current_pane.editor_state, s)
Text.insert_text(state, s) -- record undo operation record_undo_event(state, { before=before, after=snapshot( state, before_line, state.cursor1.line) })
Text.insert_text(state, s)
-- record undo operation
record_undo_event(state,
{
before=before,
after=snapshot(
state, before_line,
state.cursor1.line)
})
end