bugfix

[?]
Jun 19, 2022, 4:21 PM
FYS7TCDWKNRNOJSGRD2JMU4B2LHX5S63ZISM7YF7KZYEYLVCIKIAC

Dependencies

  • [2] CCYSVZA2 bugfix: BSOD in #4.
  • [3] PX7DDEMO autosave slightly less aggressively
  • [4] MP2TBKU6 bugfix: crash in Text.up() after return
  • [5] NZKYPBSK check for scroll when just typing
  • [6] 2RXZ3PGO beginning of a new approach to scroll+wrap
  • [7] CG3264MM move
  • [8] OYXDYPGS get rid of debug variables
  • [9] JY4VK7L2 rename
  • [10] 2ZYV7D3W handle tab characters
  • [11] 73OCE2MC after much struggle, a brute-force undo
  • [12] 537TQ2QN some more logging
  • [13] SQLVYKVJ rename
  • [14] XNFTJHC4 split keyboard handling between Text and Drawing
  • [15] 2POFQQLW keep cursor on screen when pressing 'down'
  • [16] DHI6IJCN selecting text and deleting selections
  • [*] LXTTOB33 extract a couple of files
  • [*] 4VKEE43Z bugfix
  • [*] BULPIBEG beginnings of a module for the text editor
  • [*] OTIBCAUJ love2d scaffold
  • [*] RMKMPFT5 fix a corner case when selecting text
  • [*] 2INHXC3K position cursor by clicking on text
  • [*] QZH3PQFU .
  • [*] JCSLDGAH beginnings of support for multiple shapes
  • [*] HRWN5V6J Devine's suggestion to try to live with just freehand

Change contents

  • edit in text_tests.lua at line 187
    [19.1122]
    [19.1122]
    end
    function test_edit_after_click_resets_selection()
    io.write('\ntest_edit_after_click_resets_selection')
    -- display a line of text
    App.screen.init{width=80, height=80}
    Lines = load_array{'abc'}
    Line_width = 75
    Cursor1 = {line=1, pos=1}
    Screen_top1 = {line=1, pos=1}
    Screen_bottom1 = {}
    App.draw()
    -- click past the end of it and hit enter
    App.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 pressed
    check_nil(Selection1.line, 'F - test_edit_after_click_resets_selection')
  • replacement in text.lua at line 167
    [5.627][4.152:173]()
    --? print('chord')
    [5.627]
    [5.1]
    --? print('chord', chord, Selection1.line, Selection1.pos)
  • edit in main.lua at line 350
    [22.2422]
    [23.361]
    --? print('selection')
  • edit in main.lua at line 376
    [2.208]
    [24.82]
    --? print('reset selection')
  • edit in main.lua at line 410
    [3.649]
    [25.3116]
    if not App.shift_down() then
    Selection1 = {}
    end
  • edit in main.lua at line 554
    [5.5055]
    [26.350]
    end
    if not App.shift_down() then
    Selection1 = {}