selection bugfix
[?]
Jun 20, 2022, 7:02 PM
4WAFGF4ZMUQOLBWRZ2SI6RWEBKMFNFZQJMPECT25C2VPYHNDK2JQCDependencies
- [2]
AVLAYODPmuch simpler - [3]
HRWN5V6JDevine's suggestion to try to live with just freehand - [4]
XNFTJHC4split keyboard handling between Text and Drawing - [*]
LXTTOB33extract a couple of files - [*]
VG75U7IMbugfix: typing should delete highlighted text - [*]
OTIBCAUJlove2d scaffold
Change contents
- edit in text_tests.lua at line 244
endfunction test_copy_does_not_reset_selection()io.write('\ntest_copy_does_not_reset_selection')-- display a line of text with a selectionApp.screen.init{width=80, height=80}Lines = load_array{'abc'}Line_width = 75Cursor1 = {line=1, pos=1}Selection1 = {line=1, pos=2}Screen_top1 = {line=1, pos=1}Screen_bottom1 = {}App.draw()-- copy selectionApp.run_after_keychord('C-c')check_eq(App.clipboard, 'a', 'F - test_copy_does_not_reset_selection/clipboard')-- selection is reset since shift key is not pressedcheck(Selection1.line, 'F - test_copy_does_not_reset_selection') - replacement in main.lua at line 554
if not App.shift_down() thenif not App.shift_down() and chord ~= 'C-c' then