switch to line index in a function

[?]
Jul 17, 2022, 4:37 PM
WZFMGVDTNVWZUX46RMEP5XHRZRBKL5G262VAQUWP5AYY7TRXN5XAC

Dependencies

  • [2] IWYLK45K clicking to the right of a line within line width
  • [3] T57DTBX6 add args to some functions
  • [4] 76AIXR7H bugfix
  • [5] IMEJA43L snapshot
  • [6] BOFNXP5G clicking now moves the cursor even on long, wrapped lines
  • [7] 2RXZ3PGO beginning of a new approach to scroll+wrap
  • [8] 4VKEE43Z bugfix
  • [9] MYC7XR5Q bugfix: lines that aren't drawn from the start
  • [10] BULPIBEG beginnings of a module for the text editor
  • [11] LF7BWEG4 group all editor globals
  • [12] 5L7K4GBD clicking to the right of a wrapped line
  • [13] J6WEC2D6 .

Change contents

  • replacement in text.lua at line 725
    [3.352][2.929:1051]()
    if screen_line_index < #line.screen_line_starting_pos and mx > Text.screen_line_width(line, screen_line_index) then
    [3.352]
    [3.1479]
    if screen_line_index < #line.screen_line_starting_pos and mx > Text.screen_line_width(State, line_index, screen_line_index) then
  • replacement in text.lua at line 738
    [3.469][2.1052:1093]()
    function Text.screen_line_width(line, i)
    [3.469]
    [2.1093]
    function Text.screen_line_width(State, line_index, i)
    local line = State.lines[line_index]