YCPA257VEFZTLAMDGZ7ZJTJOFHM36ID3O7OGCBYPAMIA4QAOFWVAC local s = Text.selection(Current_pane.editor_state)if s then App.set_clipboard(s) end
local e = Current_pane.editor_statelocal s = Text.selection(e)if s == nil then-- nothing selected? copy entire editor-- workaround while we have no way to save to filee.selection1 = {line=1, pos=1}e.cursor1 = {line=#e.lines, pos=utf8.len(e.lines[#e.lines].data)+1}s = Text.selection(e)endApp.set_clipboard(s)