bugfix: highlight search patterns on the right line
[?]
Jul 31, 2023, 3:29 PM
IM7UEBMKYG6UT2MS34ZUVM5ZLN5YUZXOHJ6GVUSFMHRAK3JKULBQCDependencies
- [2]
TWXPV2AChoist and duplicate a conditional - [3]
KKMFQDR4editing source code from within the app - [4]
HALS7E5Umore clearly skip prints before screen top - [5]
ZPQI5UL3bugfix: never use utf8 pos in string.sub - [6]
ZE7LVQNEimprove a comment - [7]
SDEY7LFJrename a variable - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- replacement in text.lua at line 35
if pos <= State.cursor1.pos and pos + frag_len >= State.cursor1.pos thenif pos <= State.cursor1.pos and pos + frag_len > State.cursor1.pos then - replacement in text.lua at line 45
if pos <= State.cursor1.pos and pos + frag_len >= State.cursor1.pos thenif pos <= State.cursor1.pos and pos + frag_len > State.cursor1.pos thenText.draw_cursor(State, State.left+Text.x(screen_line, State.cursor1.pos-pos+1), y)elseif pos + frag_len == State.cursor1.pos then-- Show cursor at end of line.-- This place also catches end of wrapping screen lines. That doesn't seem worth distinguishing.-- It seems useful to see a cursor whether your eye is on the left or right margin. - replacement in source_text.lua at line 57
if pos <= State.cursor1.pos and pos + frag_len >= State.cursor1.pos thenif pos <= State.cursor1.pos and pos + frag_len > State.cursor1.pos then - replacement in source_text.lua at line 67
if pos <= State.cursor1.pos and pos + frag_len >= State.cursor1.pos thenif pos <= State.cursor1.pos and pos + frag_len > State.cursor1.pos thenText.draw_cursor(State, State.left+Text.x(screen_line, State.cursor1.pos-pos+1), y)elseif pos + frag_len == State.cursor1.pos then-- Show cursor at end of line.-- This place also catches end of wrapping screen lines. That doesn't seem worth distinguishing.-- It seems useful to see a cursor whether your eye is on the left or right margin.