copy entire buffer when there's no selection
Dependencies
- [2]
RK2ASPN7add lots of buttons to the toolbar - [3]
5MEJ7XNHlay out buttons based on device dimensions
Change contents
- replacement in 0066-copy_button at line 19
local s = Text.selection(Current_pane.editor_state)if s then App.set_clipboard(s) endlocal 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)