swap return values

[?]
Aug 17, 2022, 4:10 PM
NHNP76LGNIVNIDMSDILAKEVSWFQ4LKNCYXVQEGKKJ75TSRPEBVEQC

Dependencies

  • [2] TGHAJBES use line cache for drawings as well
  • [3] HTWAM4NZ bugfix: scrolling in left/right movements
  • [4] 5ZA3BRNY add state arg to a few functions
  • [5] ILOA5BYF separate data structure for each line's cache data
  • [6] CUIV2LE5 some typos
  • [7] YJJ4X4JG bugfix: avoid scrolling on 'end'
  • [8] UHB4GARJ left/right margin -> left/right coordinates
  • [9] UV4EWOLY add args to some functions
  • [10] XNFTJHC4 split keyboard handling between Text and Drawing
  • [11] 2H67P75X switch arg for a function
  • [12] LXTTOB33 extract a couple of files
  • [13] CBPV5SSI stop handling nil screen_line_starting_pos everywhere
  • [14] Z5HLXU4P add state arg to a few functions
  • [15] 2RXZ3PGO beginning of a new approach to scroll+wrap
  • [16] S2MISTTM add state arg to a few functions
  • [17] WLJCIXYM add state arg to a few functions
  • [18] ODLKHO7B switch to line index in a function
  • [19] ZPUQSPQP extract a few methods
  • [20] WOXIYUTL bugfix: manage screen_top and cursor when resizing
  • [21] LF7BWEG4 group all editor globals
  • [22] MXA3RZYK deduce left/right from state where possible
  • [23] SVJZZDC3 snapshot - no, that's all wrong
  • [24] 2TQR4PSY add args to some functions
  • [25] KOYAJWE4 extract a couple more methods
  • [26] 4J2L6JMR bugfix: deleting a selection spanning pages
  • [*] BULPIBEG beginnings of a module for the text editor

Change contents

  • replacement in text.lua at line 427
    [3.4029][3.817:917]()
    local screen_line_index,screen_line_starting_pos = Text.pos_at_start_of_cursor_screen_line(State)
    [3.4029]
    [3.295]
    local screen_line_starting_pos, screen_line_index = Text.pos_at_start_of_cursor_screen_line(State)
  • replacement in text.lua at line 504
    [3.3993][3.1502:1605]()
    local screen_line_index, screen_line_starting_pos = Text.pos_at_start_of_cursor_screen_line(State)
    [3.3993]
    [2.570]
    local screen_line_starting_pos, screen_line_index = Text.pos_at_start_of_cursor_screen_line(State)
  • replacement in text.lua at line 529
    [3.7851][3.1806:1872]()
    local _,botpos = Text.pos_at_start_of_cursor_screen_line(State)
    [3.7851]
    [3.7852]
    local botpos = Text.pos_at_start_of_cursor_screen_line(State)
  • replacement in text.lua at line 645
    [3.806][3.1621:1641](),[3.6475][3.1621:1641](),[3.74496][3.1621:1641](),[3.1621][3.1621:1641]()
    return i,spos
    [3.806]
    [3.4909]
    return spos,i
  • replacement in text.lua at line 987
    [3.419][3.3874:3944]()
    --? local _,botpos = Text.pos_at_start_of_cursor_screen_line(State)
    [3.419]
    [3.1062]
    --? local botpos = Text.pos_at_start_of_cursor_screen_line(State)
  • replacement in select.lua at line 136
    [3.2509][3.4497:4574]()
    _,State.screen_top1.pos = Text.pos_at_start_of_cursor_screen_line(State)
    [3.2509]
    [3.1160]
    State.screen_top1.pos = Text.pos_at_start_of_cursor_screen_line(State)
  • replacement in search.lua at line 65
    [3.880][3.16804:16895]()
    local _, pos = Text.pos_at_start_of_cursor_screen_line(State, State.left, State.right)
    [3.880]
    [3.1002]
    local pos = Text.pos_at_start_of_cursor_screen_line(State, State.left, State.right)
  • replacement in search.lua at line 113
    [3.1925][3.16896:16987]()
    local _, pos = Text.pos_at_start_of_cursor_screen_line(State, State.left, State.right)
    [3.1925]
    [3.2047]
    local pos = Text.pos_at_start_of_cursor_screen_line(State, State.left, State.right)