resolve conflicts
Dependencies
- [2]
OEZ4KAX6Merge upstream into main - [3]
VESAKVTRMerge lines.love - [4]
2TCIWW6Zstop caching starty - [5]
KKMFQDR4editing source code from within the app - [6]
OWK3U6VDtests for drawing polygons - [7]
P4376EXKadd state arg to few functions - [8]
OLZRJ4AXexperiment: use digits to draw regular polygons - [9]
4CTZOJPCstop pretending globals are local - [10]
7JH2ZT3Fadd state arg to Drawing.draw - [11]
42LVB4DEtest: naming a point - [12]
EAEGCJV5rename - [13]
3OTESDW6move drawing.starty into line cache - [14]
SGMDI4TCbugfix: alignment of help screen - [15]
G3DLS5OUaudit all asserts - [16]
7CEOB56DMerge upstream into main - [17]
G54H3YG2get rid of all bifold text - [18]
YCDYGEZUinclude drawing index in a few places - [19]
UHB4GARJleft/right margin -> left/right coordinates - [20]
P5QNVXSNdrop final mention of state global beyond main.lua - [21]
WTDKUACNrectangle and square shapes - [22]
CZU7JNNAresolve conflicts - [23]
R3JZDBI2drop heavyweight near check on file load/store - [24]
NYQ7HD4Dmove - [25]
27DROQW2Merge upstream into main - [26]
ZS5IYZH5stop caching screen_bottom1 - [27]
ORRSP7FVdeduce test names on failures - [28]
VHQCNMARseveral more modules - [29]
KTZQ57HVreplace globals with args in a few functions - [30]
4KC7I3E2make colors easier to edit - [31]
AYE2VEGJextract a couple of methods - [32]
LNUHQOGHstart passing in Editor_state explicitly - [33]
FNJF2FMQbugfix: online help - [34]
BLWAYPKVextract a module - [35]
2RO7JXUCMerge upstream into main - [36]
QXVD2RIFadd state arg to Drawing.mouse_released - [37]
LAW2O3NWextract variable Margin_left - [38]
SRVDX4I5local var - [39]
DXT4QTAHa few more integer coordinates - [40]
W7JMT5V2rip out most support for polygons - [41]
BCRJ6MHLMerge upstream into main - [42]
WDMPH4ANdrop support for squares - [43]
YW2GO3U4bugfix: crash in Text.up() after return - [44]
XNFTJHC4split keyboard handling between Text and Drawing - [45]
5SM6DRHKport inscript's bugfix to source editor - [46]
KMSL74GAsupport selections in the source editor - [47]
6DE7RBZ6move mouse_released events to Drawing - [48]
LF7BWEG4group all editor globals - [49]
DDXXXXBRnew mode for polygons - [50]
23MA4T3Gadd state arg to Drawing.keychord_pressed - [51]
MP2TBKU6bugfix: crash in Text.up() after return - [52]
HOSPP2ANcrisp font rendering - [53]
3HVBAZPAadd state arg to a few functions - [54]
3OKKTUT4up and down arrow now moving by screen line where possible - [55]
CUFW4EJLreorganize app.lua and its comments - [56]
C6QTJYA4keep online help inside of drawing - [*]
BULPIBEGbeginnings of a module for the text editor - [*]
K2X6G75Zstart writing some tests for drawings - [*]
3QNOKBFMbeginnings of a test harness
Change contents
- edit in text.lua at line 964
function Text.eq2(a, b)return a.line == b.line and a.screen_line == b.screen_line and a.screen_pos == b.screen_posend - edit in text.lua at line 975[5.1157]→[5.24:24](∅→∅),[5.24]→[5.875:880](∅→∅),[5.559]→[5.875:880](∅→∅),[5.880]→[5.3069:3187](∅→∅),[5.880]→[5.3069:3187](∅→∅)
endfunction Text.eq2(a, b)return a.line == b.line and a.screen_line == b.screen_line and a.screen_pos == b.screen_pos - resurrect zombie in text.lua at line 975
end - 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[5.145772]→[5.145772:145797](∅→∅),[5.145797]→[5.5855:5879](∅→∅),[5.5879]→[5.7724:7859](∅→∅),[5.7859]→[5.6026:6034](∅→∅),[5.6026]→[5.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 - resurrect zombie in help.lua at line 45
y = y + State.line_heightApp.color(Help_background_color) - edit in help.lua at line 47
love.graphics.rectangle('fill', State.left,line_cache.starty, State.width, math.max(Drawing.pixels(drawing.h, State.width),y-line_cache.starty)) - resurrect zombie in help.lua at line 47
love.graphics.rectangle('fill', State.left,starty, State.width, math.max(Drawing.pixels(drawing.h, State.width),y-starty)) - resolve order conflict in help.lua at line 47
- resurrect zombie in help.lua at line 109
App.color(Help_background_color) - edit in help.lua at line 110
love.graphics.rectangle('fill', State.left,line_cache.starty, State.width, math.max(Drawing.pixels(drawing.h, State.width),y-line_cache.starty)) - resurrect zombie in help.lua at line 110
love.graphics.rectangle('fill', State.left,starty, State.width, math.max(Drawing.pixels(drawing.h, State.width),y-starty)) - resolve order conflict in help.lua at line 110
- edit in drawing_tests.lua at line 234
check_eq(Editor_state.line_cache[1].starty, Editor_state.top+Drawing_padding_top, 'baseline/y') - resurrect zombie in drawing_tests.lua at line 235
check_eq(Editor_state.lines[1].h, 128, 'baseline/y')check_eq(#Editor_state.lines[1].shapes, 0, 'baseline/#shapes') - edit in drawing_tests.lua at line 330
check_eq(Text.starty(Editor_state, 1), Editor_state.top+Drawing_padding_top, 'baseline/y') - replacement in drawing.lua at line 73
Drawing.draw_pending_shape(State, line, line_cache.starty, State.left,State.right)Drawing.draw_pending_shape(line, starty, State.left,State.right)Drawing.draw_pending_shape(State, line, starty, State.left,State.right) - edit in drawing.lua at line 210
- resolve order conflict in drawing.lua at line 210
- replacement in drawing.lua at line 358
local mx,my = Drawing.coord(x-State.left, State.width), Drawing.coord(y-line_cache.starty, State.width)local mx,my = Drawing.coord(x-State.left, State.width), Drawing.coord(y-starty, State.width) - edit in drawing.lua at line 433[5.936]→[5.4355:4551](∅→∅),[5.936]→[5.4355:4551](∅→∅),[5.690]→[4.7570:7809](∅→∅),[5.690]→[4.7570:7809](∅→∅)
local _,drawing,line_cache = Drawing.current_drawing(State)local mx,my = Drawing.coord(App.mouse_x()-State.left, State.width), Drawing.coord(App.mouse_y()-line_cache.starty, State.width)local drawing_index,drawing = Drawing.current_drawing(State)local starty = Text.starty(State, drawing_index)local mx,my = Drawing.coord(App.mouse_x()-State.left, State.width), Drawing.coord(App.mouse_y()-starty, State.width) - resurrect zombie in drawing.lua at line 433
local drawing_index,drawing = Drawing.current_drawing(State)local starty = Text.starty(State, drawing_index)local mx,my = Drawing.coord(App.mouse_x()-State.left, State.width), Drawing.coord(App.mouse_y()-starty, State.width) - resurrect zombie in drawing.lua at line 436[5.2661]→[5.7963:8042](∅→∅),[5.4551]→[5.7963:8042](∅→∅),[4.8049]→[5.7963:8042](∅→∅),[5.2661]→[5.7963:8042](∅→∅),[5.39140]→[5.7963:8042](∅→∅),[5.4551]→[5.7963:8042](∅→∅)
local j = Drawing.find_or_insert_point(drawing.points, mx,my, State.width) - edit in drawing.lua at line 734[5.1525]→[5.221:221](∅→∅),[5.2366]→[4.7262:7365](∅→∅),[5.2366]→[4.7262:7365](∅→∅),[5.1231]→[4.7056:7157](∅→∅),[5.1231]→[4.7056:7157](∅→∅),[5.1231]→[4.7056:7157](∅→∅)
local mx,my = Drawing.coord(x-State.left, State.width), Drawing.coord(y-starty, State.width)local mx,my = Drawing.coord(x-State.left, State.width), Drawing.coord(y-starty, State.width) - resolve order conflict in drawing.lua at line 734[5.1525]
- replacement in app.lua at line 134
--? test_click_moves_cursor()--? test_draw_rectangle()