diff options
Diffstat (limited to 'source.lua')
-rw-r--r-- | source.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source.lua b/source.lua index 67d140b..89c1021 100644 --- a/source.lua +++ b/source.lua @@ -15,11 +15,15 @@ function source.initialize_globals() 'run_tests', 'log', 'edit', + 'drawing', + 'help', 'text', 'search', 'select', 'undo', 'text_tests', + 'geom', + 'drawing_tests', 'file', 'source', 'source_tests', @@ -273,7 +277,7 @@ function source.mouse_pressed(x,y, mouse_button) --? print('mouse click', x, y) --? print(Editor_state.left, Editor_state.right) --? print(Log_browser_state.left, Log_browser_state.right) - if Editor_state.left <= x and x < Editor_state.right then + if x < Editor_state.right + Margin_right then --? print('click on edit side') if Focus ~= 'edit' then Focus = 'edit' |