bugfix: avoid scrolling on 'end'
[?]
Jul 5, 2022, 6:24 PM
YJJ4X4JGABMVA5JBQW5UAWI543P3Y7NDVFTOHA6LIDA5KSFGUFNQCDependencies
- [2]
VC2CU2GGfaster paste - [3]
HTWAM4NZbugfix: scrolling in left/right movements - [4]
WOXIYUTLbugfix: manage screen_top and cursor when resizing - [5]
LS55YKGWswitch copy/paste to ctrl- hotkeys - [6]
SVJZZDC3snapshot - no, that's all wrong - [7]
KECEMMMRextract couple of functions - [8]
ZPUQSPQPextract a few methods - [9]
HOSPP2ANcrisp font rendering - [10]
CBPV5SSIstop handling nil screen_line_starting_pos everywhere - [11]
MDXGMZU2disable all debug prints - [12]
ESETRNLBbugfix: printing the first part of a line at the bottom made it seem non-wrapping - [*]
BULPIBEGbeginnings of a module for the text editor - [*]
OTIBCAUJlove2d scaffold
Change contents
- replacement in text.lua at line 512
if Text.lt1(Screen_bottom1, botline1) thenif Text.cursor_past_screen_bottom() then - replacement in text.lua at line 578
local _,botpos = Text.pos_at_start_of_cursor_screen_line()local botline1 = {line=Cursor1.line, pos=botpos}if Text.lt1(Screen_bottom1, botline1) thenif Text.cursor_past_screen_bottom() then - replacement in text.lua at line 942
App.draw()if Text.lt1(Screen_bottom1, Cursor1) thenif Text.cursor_past_screen_bottom() then - edit in text.lua at line 948
end-- slightly expensive since it redraws the screenfunction Text.cursor_past_screen_bottom()App.draw()return Cursor_y >= App.screen.height - Line_height-- this approach is cheaper and almost works, except on the final screen-- where file ends above bottom of screen--? local _,botpos = Text.pos_at_start_of_cursor_screen_line()--? local botline1 = {line=Cursor1.line, pos=botpos}--? return Text.lt1(Screen_bottom1, botline1) - replacement in main.lua at line 520
App.draw()if Cursor_y >= App.screen.height - Line_height thenif Text.cursor_past_screen_bottom() then