no, that's not right

[?]
Jun 20, 2022, 6:25 PM
EMHRPJ3RAVIVJEQIRXIVDGENV6QHUUGXXRWTJ3BXC7SZNC66VK5QC

Dependencies

  • [2] VG75U7IM bugfix: typing should delete highlighted text
  • [3] AVTNUQYR basic test-enabled framework
  • [4] HRWN5V6J Devine's suggestion to try to live with just freehand
  • [5] JRLBUB6L more intuitive point delete from polygons
  • [*] LXTTOB33 extract a couple of files
  • [*] 4VKEE43Z bugfix
  • [*] FYS7TCDW bugfix
  • [*] BULPIBEG beginnings of a module for the text editor
  • [*] VJ77YABH more efficient undo/redo
  • [*] 2ZYV7D3W handle tab characters
  • [*] XNFTJHC4 split keyboard handling between Text and Drawing
  • [*] PX7DDEMO autosave slightly less aggressively
  • [*] DHI6IJCN selecting text and deleting selections
  • [*] CG3264MM move
  • [*] OTIBCAUJ love2d scaffold
  • [*] JCSLDGAH beginnings of support for multiple shapes
  • [*] Z4XRNDTR find text
  • [*] HOSPP2AN crisp font rendering
  • [*] NQWWTGXR switch undo/redo to ctrl- hotkeys
  • [*] LS55YKGW switch copy/paste to ctrl- hotkeys

Change contents

  • edit in text_tests.lua at line 187
    [8.1122]
    [9.2]
    end
    function test_select_text()
    io.write('\ntest_select_text')
    -- display a line of text
    App.screen.init{width=80, height=80}
    Lines = load_array{'abc def'}
    Line_width = 75
    Cursor1 = {line=1, pos=1}
    Screen_top1 = {line=1, pos=1}
    Screen_bottom1 = {}
    App.draw()
    -- select a letter
    App.fake_key_press('lshift')
    App.run_after_keychord('S-right')
    App.fake_key_release('lshift')
    App.keyreleased('lshift')
    -- selection persists even after shift is released
    check_eq(Selection1.line, 1, 'F - test_select_text/selection:line')
    check_eq(Selection1.pos, 1, 'F - test_select_text/selection:pos')
    check_eq(Cursor1.line, 1, 'F - test_select_text/cursor:line')
    check_eq(Cursor1.pos, 2, 'F - test_select_text/cursor:pos')
  • edit in text.lua at line 178
    [11.1504]
    [12.134]
    Selection1 = {}
  • edit in text.lua at line 190
    [11.1617]
    [13.2046]
    Selection1 = {}
  • edit in text.lua at line 195
    [14.67]
    [15.8453]
    Selection1 = {}
  • edit in text.lua at line 234
    [11.1843]
    [13.3034]
    Selection1 = {}
  • edit in text.lua at line 239
    [14.111]
    [15.8533]
    Selection1 = {}
  • edit in text.lua at line 272
    [11.2102]
    [16.209]
    Selection1 = {}
  • edit in main.lua at line 410
    [14.649]
    [18.3116]
    if not App.shift_down() then
    Selection1 = {}
    end
  • edit in main.lua at line 444
    [19.3819]
    [20.4279]
    Selection1 = {}
  • edit in main.lua at line 448
    [20.4470]
    [20.4470]
    Selection1 = {}
  • edit in main.lua at line 452
    [20.4615]
    [20.4661]
    Selection1 = {}
  • edit in main.lua at line 456
    [20.4795]
    [21.71]
    Selection1 = {}
  • edit in main.lua at line 469
    [21.359]
    [21.359]
    Selection1 = {}
  • edit in main.lua at line 482
    [22.46]
    [22.46]
    Selection1 = {}
  • edit in main.lua at line 490
    [22.173]
    [22.173]
    Selection1 = {}
  • edit in main.lua at line 498
    [14.716]
    [22.289]
    Selection1 = {}
  • edit in main.lua at line 520
    [22.1959]
    [22.1959]
    Selection1 = {}
  • edit in main.lua at line 568
    [3.1591][2.710:767]()
    if not App.shift_down() then
    Selection1 = {}
    end