scenario:
Before this commit the app was crashing with this error: Error: [string "text.lua"]:1006: attempt to index a nil value stack traceback: text.lua:1006: in function 'to2' text.lua:482: in function 'screen_bottom1' text.lua:739: in function 'final_text_loc_on_screen' edit.lua:309: in function 'mouse_press' run.lua:747: in function 'mouse_press_in_normal_mode' run.lua:714: in function 'mouse_press' main.lua:306: in function <[string "main.lua"]:302> app.lua:442: in function <[string "app.lua"]:442> app.lua:29: in function <[string "app.lua"]:29> [C]: in function 'xpcall' app.lua:29: in function <[string "app.lua"]:20> [C]: in function 'xpcall' [love "boot.lua"]:377: in function <[love "boot.lua"]:344>
FJHYEMKH2RCMPSLTW5GA6PL5P6GHS3BWNLKT3Y6WFPXL3WY4ZYPQC
edit.mouse_press(pane, x,y, mouse_button)
-- This is quite possibly a band-aid. It makes me nervous that
-- screen_top1 can be at an invalid value. It's being set by
-- schema1_of_y.
if pane.screen_top1.line <= #pane.lines then
edit.mouse_press(pane, x,y, mouse_button)
end
edit.mouse_release(pane, x,y, mouse_button)
-- This is quite possibly a band-aid. It makes me nervous that
-- screen_top1 can be at an invalid value. It's being set by
-- schema1_of_y.
if pane.screen_top1.line <= #pane.lines then
edit.mouse_release(pane, x,y, mouse_button)
end