drop some unnecessary calls

[?]
Aug 15, 2022, 10:48 PM
HVJKBW5UACXZSWXCXVKYDTG6BKWFAUOEOAYJP7OFNFSY2A2J2DJAC

Dependencies

  • [2] TGHAJBES use line cache for drawings as well
  • [3] XUGDTYW2 stop confusingly reading a global
  • [4] Y4SPXCM3 bugfix: pagedown was sometimes bouncing up
  • [5] M6TH7VSZ rip out notion of Line_width
  • [6] ODLKHO7B switch to line index in a function
  • [7] MYC7XR5Q bugfix: lines that aren't drawn from the start
  • [8] K4OBZSHE add args to some functions
  • [9] 5DOTWNVM right margin
  • [10] QCPXQ2E3 add state arg to a few functions
  • [11] FKNXK2OA switch to line index in a function
  • [12] JY4VK7L2 rename
  • [13] 4VKEE43Z bugfix
  • [14] HYEAFRZ2 split mouse_pressed events between Text and Drawing
  • [15] CVGE3SIG I feel confident now that page-down is working.
  • [16] KURLAXXI clean up some prints
  • [17] HGC5RGJP switch to line index in a function
  • [18] ILOA5BYF separate data structure for each line's cache data
  • [19] UV4EWOLY add args to some functions
  • [20] 5FW7YOFT highlight selection while dragging
  • [21] BOFNXP5G clicking now moves the cursor even on long, wrapped lines
  • [22] LERERVPH keep one screen line of overlap on pagedown
  • [23] NDHQN23G done passing left/right margins everywhere
  • [24] 2H67P75X switch arg for a function
  • [25] MXA3RZYK deduce left/right from state where possible
  • [26] U52E2XZN fix a crash
  • [27] OYXDYPGS get rid of debug variables
  • [28] H2DPLWMV snapshot: wrapping long lines at word boundaries
  • [29] CBPV5SSI stop handling nil screen_line_starting_pos everywhere
  • [*] BULPIBEG beginnings of a module for the text editor

Change contents

  • edit in text.lua at line 21
    [3.47][4.3821:3859](),[4.807][4.3821:3859](),[4.141][4.3821:3859](),[4.3859][4.3:49](),[4.1850][4.3:49](),[4.49][4.103:109](),[4.49][4.103:109](),[4.135][4.103:109](),[4.776][4.103:109](),[4.103][4.103:109]()
    if line_cache.fragments == nil then
    Text.compute_fragments(State, line_index)
    end
  • edit in text.lua at line 704
    [2.1078][4.5600:5638](),[4.5600][4.5600:5638](),[4.5638][4.733:779](),[4.35][4.733:779](),[4.668][4.80:86](),[4.779][4.80:86](),[4.1844][4.80:86](),[4.3150][4.80:86](),[4.80][4.80:86]()
    if line_cache.fragments == nil then
    Text.compute_fragments(State, line_index)
    end