revert selection logic to before commit 3ffc2ed8f

[?]
Jun 20, 2022, 8:12 PM
AOIRVVJARCGTWTRE5MAAU4YQAGD5J4HTR7XCS63UFAUY3A43L6NQC

Dependencies

  • [2] 4WAFGF4Z selection bugfix
  • [3] S2YQBEYC snapshot: test for a new regression
  • [4] VG75U7IM bugfix: typing should delete highlighted text
  • [5] AVTNUQYR basic test-enabled framework
  • [6] GN3IF4WF bugfix: pasting newlines
  • [7] KOYAJWE4 extract a couple more methods
  • [8] Z4XRNDTR find text
  • [9] BYG5CEMV support for naming points
  • [10] PFT5Y2ZY move
  • [11] OTIBCAUJ love2d scaffold
  • [12] AVLAYODP much simpler
  • [13] XNFTJHC4 split keyboard handling between Text and Drawing
  • [14] VJ77YABH more efficient undo/redo
  • [15] 6DE7RBZ6 move mouse_released events to Drawing
  • [16] 65XHTZEK regression: couldn't do many drawing operations because line.y was reset
  • [17] FYS7TCDW bugfix
  • [18] HRWN5V6J Devine's suggestion to try to live with just freehand
  • [19] 2ENZW7TV select text using mouse drag
  • [20] R5OKMVVC fix a regression in line wrapping
  • [*] LXTTOB33 extract a couple of files
  • [*] BULPIBEG beginnings of a module for the text editor
  • [*] XDB5D7H7 some early returns should be asserts
  • [*] CG3264MM move
  • [*] X75QPYVW move Selection1 clearing past business logic
  • [*] DHI6IJCN selecting text and deleting selections
  • [*] ZPUQSPQP extract a few methods
  • [*] AMSESRTH move some code

Change contents

  • edit in text_tests.lua at line 1338
    [3.616]
    [3.616]
    App.run_after_keychord('C-z')
  • edit in text.lua at line 140
    [4.1568][4.3:73]()
    -- don't depend on state of Selection1; use keychord_pressed for that
  • edit in text.lua at line 145
    [24.98]
    [4.1234]
    if Selection1.line then
    Text.delete_selection()
    end
  • edit in text.lua at line 272
    [25.293]
    [25.293]
    Selection1 = {}
  • edit in text.lua at line 275
    [26.41]
    [27.8673]
    Selection1 = {}
  • edit in text.lua at line 289
    [28.22]
    [25.761]
    Selection1 = {}
  • edit in text.lua at line 292
    [26.85]
    [27.9088]
    Selection1 = {}
  • edit in text.lua at line 319
    [26.151]
    [4.4433]
    Selection1 = {}
  • edit in text.lua at line 322
    [27.9989]
    [27.9989]
    Selection1 = {}
  • edit in text.lua at line 335
    [26.191]
    [29.859]
    Selection1 = {}
  • edit in text.lua at line 338
    [27.10401]
    [27.10401]
    Selection1 = {}
  • edit in text.lua at line 350
    [4.188][4.74:159]()
    if Selection1.line and not App.shift_down() then
    Text.delete_selection()
    end
  • edit in main.lua at line 394
    [4.135][4.165:235]()
    -- don't depend on state of Selection1; use keychord_pressed for that
  • edit in main.lua at line 552
    [4.5055][4.236:242](),[4.242][2.624:674](),[2.674][4.273:293](),[4.273][4.273:293]()
    end
    if not App.shift_down() and chord ~= 'C-c' then
    Selection1 = {}