resolve conflicts
Dependencies
- [2]
54HQZ536resolve conflicts - [3]
2TCIWW6Zstop caching starty - [4]
KYNGDE2Cconsistent names in a few more places - [5]
KTZQ57HVreplace globals with args in a few functions - [6]
ZS5IYZH5stop caching screen_bottom1 - [7]
VYIA2JFXresolve conflicts - [8]
KF72R2XXresolve conflicts - [9]
LF7BWEG4group all editor globals - [10]
KKMFQDR4editing source code from within the app - [11]
656FM555bugfix: clear selection when clicking above or below lines - [12]
5UKUADTWdistinguish consistently between mouse buttons and other buttons - [13]
G54H3YG2get rid of all bifold text - [14]
OO5GDU53pijul bug: why did previous change not have any effect? - [15]
CIK3U5S6Merge lines.love - [16]
TXI6GSQDsome minor cleanup - [17]
KMSL74GAsupport selections in the source editor - [18]
QAMVLUK2fix a crash involving mouse and drawings - [19]
5CDHNEKRMerge lines.love - [20]
GFXWHTE6mouse wheel support - [21]
CUFW4EJLreorganize app.lua and its comments - [22]
VOJISLDCresolve conflicts - [23]
P4NJ2KS7resolve conflicts - [24]
5SM6DRHKport inscript's bugfix to source editor - [25]
LNUHQOGHstart passing in Editor_state explicitly - [26]
OWE64YJ2Merge lines.love - [27]
2L5MEZV3experiment: new edit namespace - [28]
BW2IUB3Kkeep all text cache writes inside text.lua - [29]
WJBZZQE4fold together two largely similar cases - [30]
KNWMKLNJMerge lines.love - [31]
3OTESDW6move drawing.starty into line cache - [32]
2MGBV7NPbugfix: crash when using mouse wheel - [33]
APOMBXMUresolve conflicts - [34]
Z5WOBP27Merge lines.love - [35]
6XCJX4DZbugfix: inscript's bug - [*]
3QNOKBFMbeginnings of a test harness
Change contents
- edit in source_text.lua at line 442
if State.lines[loc2.line].mode == 'drawing' theny = y + Drawing_padding_topend - replacement in source_text.lua at line 449
y = y + Drawing_padding_height + Drawing.pixels(State.lines[loc2.line].h, State.width)y = y + Drawing.pixels(State.lines[loc2.line].h, State.width) + Drawing_padding_bottom - edit in source_text.lua at line 1108
--? print('too low') - replacement in source_text.lua at line 1109[4.145772]→[4.145772:145797](∅→∅),[4.145797]→[4.5855:5879](∅→∅),[4.5879]→[4.7724:7859](∅→∅),[4.7859]→[4.6026:6034](∅→∅),[4.6026]→[4.6026:6034](∅→∅)
--? print('tweak')State.cursor1 = {line=screen_bottom1.line,pos=Text.to_pos_on_line(State, screen_bottom1.line, State.right-5, App.screen.height-5),}State.cursor1 = Text.final_text_loc_on_screen(State) - replacement in source_select.lua at line 72
if y < State.line_cache[State.screen_top1.line].starty thenif y < State.top then - edit in edit.lua at line 168
local screen_bottom1 = {line=nil, pos=nil} - edit in edit.lua at line 173
screen_bottom1.line = line_index - replacement in edit.lua at line 195
y, screen_bottom1.pos = Text.draw(State, line_index, y, startpos)y = Text.draw(State, line_index, y, startpos) - edit in edit.lua at line 205
State.screen_bottom1 = screen_bottom1 - replacement in edit.lua at line 278
local line_cache = State.line_cache[line_index]if Drawing.in_drawing(line, line_cache, x, y, State.left,State.right) thenif Drawing.in_drawing(State, line_index, x, y, State.left,State.right) then - replacement in edit.lua at line 292
State.selection1 = {line=State.screen_bottom1.line,pos=Text.pos_at_end_of_screen_line(State, State.screen_bottom1),}State.selection1 = Text.final_text_loc_on_screen(State) - replacement in edit.lua at line 330
State.cursor1.line, State.cursor1.pos = State.screen_bottom1.line, Text.pos_at_end_of_screen_line(State, State.screen_bottom1)State.cursor1 = Text.final_text_loc_on_screen(State) - replacement in edit.lua at line 358
State.cursor1 = {line=State.screen_bottom1.line, pos=State.screen_bottom1.pos}State.cursor1 = Text.screen_bottom1(State) - edit in edit.lua at line 396
for _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end -- just in case we scroll - edit in edit.lua at line 500
-- DON'T reset line_cache.starty here - edit in edit.lua at line 536
for _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end -- just in case we scroll - edit in edit.lua at line 590
edit.draw(State) - edit in edit.lua at line 613[4.17561]→[2.104:104](∅→∅),[4.182]→[4.8618:8665](∅→∅),[4.182]→[4.8618:8665](∅→∅),[4.5239]→[4.8565:8617](∅→∅),[4.5239]→[4.8565:8617](∅→∅),[4.8089]→[3.4055:4137](∅→∅),[4.8089]→[3.4055:4137](∅→∅),[4.834]→[4.1152:1171](∅→∅),[4.834]→[4.1152:1171](∅→∅),[4.3196]→[4.1094:1151](∅→∅),[4.3196]→[4.1094:1151](∅→∅),[4.2459]→[4.1035:1093](∅→∅),[4.2459]→[4.1035:1093](∅→∅)
State.cursor1 = Text.screen_bottom1(State)y = Text.draw(State, line_index, y, startpos)if Drawing.in_drawing(State, line_index, x, y, State.left,State.right) thenedit.draw(State)State.cursor1 = Text.final_text_loc_on_screen(State)State.selection1 = Text.final_text_loc_on_screen(State) - resolve order conflict in edit.lua at line 613[4.17561]
- replacement in app.lua at line 134
--? test_click_moves_cursor()--? test_click_below_all_lines()