yet another bugfix in selection management
[?]
Jul 7, 2022, 2:39 PM
AQQQNDTL52Q2VO3XLEGYKHTU2YSRAB4ACEGVPSWYD2Z6WA6Z2YPACDependencies
- [2]
5DOTWNVMright margin - [3]
J5IEBT64enforce press/release state only processed once - [4]
H3ECRBXFbugfix: clicking on empty lines - [5]
BOFNXP5Gclicking now moves the cursor even on long, wrapped lines - [6]
QZH3PQFU. - [7]
LXTTOB33extract a couple of files - [8]
ZLJGZYQGselect text with shift + mouseclick - [9]
HYEAFRZ2split mouse_pressed events between Text and Drawing - [10]
2INHXC3Kposition cursor by clicking on text - [11]
2ENZW7TVselect text using mouse drag - [12]
DHI6IJCNselecting text and deleting selections - [13]
RMKMPFT5fix a corner case when selecting text - [14]
CCYSVZA2bugfix: BSOD in #4. - [15]
4VKEE43Zbugfix - [16]
DRFE3B3Zmouse buttons are integers, not strings - [17]
VG75U7IMbugfix: typing should delete highlighted text - [18]
5FW7YOFThighlight selection while dragging - [19]
EMHRPJ3Rno, that's not right - [20]
7EQLPB3Obugfix: don't delete selection when moving cursor - [21]
IWYLK45Kclicking to the right of a line within line width - [22]
M6TH7VSZrip out notion of Line_width - [23]
FYS7TCDWbugfix - [*]
7NQCCB34. - [*]
OTIBCAUJlove2d scaffold
Change contents
- edit in text_tests.lua at line 79
check_nil(Selection1.line, 'F - test_click_with_mouse/selection is empty to avoid perturbing future edits') - edit in text_tests.lua at line 338[5.7]→[5.7:140](∅→∅),[5.140]→[5.382:421](∅→∅),[5.421]→[5.179:207](∅→∅),[5.179]→[5.179:207](∅→∅),[5.207]→[2.866:913](∅→∅),[2.913]→[5.225:669](∅→∅),[5.225]→[5.225:669](∅→∅),[5.669]→[5.1122:1127](∅→∅),[5.1122]→[5.1122:1127](∅→∅)
function test_edit_after_click_resets_selection()io.write('\ntest_edit_after_click_resets_selection')-- display a line of textApp.screen.init{width=75, height=80}Lines = load_array{'abc'}Margin_right = 0; Margin_width = Margin_leftCursor1 = {line=1, pos=1}Screen_top1 = {line=1, pos=1}Screen_bottom1 = {}App.draw()-- click past the end of it and hit enterApp.run_after_mouse_click(Margin_left+40,Margin_top+5, 1)check(Selection1.line, 'F - test_edit_after_click_resets_selection/baseline')App.run_after_keychord('return')-- selection is reset since shift key is not pressedcheck_nil(Selection1.line, 'F - test_edit_after_click_resets_selection')end - replacement in main.lua at line 344
-- delicate dance between cursor, selection and old cursor-- manual tests:-- delicate dance between cursor, selection and old cursor/selection-- scenarios: - edit in main.lua at line 399
if eq(Cursor1, Selection1) thenSelection1 = {}end