diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-13 15:40:14 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-13 15:40:14 -0700 |
commit | 119abbd52ea8648a8af8a5bf15066f96e7b0e247 (patch) | |
tree | da14e0a4f2aaabcfeb2873426eb22d1ccc81fb69 /main.lua | |
parent | e4f9d50a553f6ebd46e5505d46edbd945e821ae7 (diff) | |
download | text.love-119abbd52ea8648a8af8a5bf15066f96e7b0e247.tar.gz |
bugfix: resize
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main.lua b/main.lua index 7f39cb5..0164a7a 100644 --- a/main.lua +++ b/main.lua @@ -122,6 +122,8 @@ function App.resize(w, h) App.screen.width, App.screen.height = w, h Text.redraw_all(Editor_state) Editor_state.selection1 = {} -- no support for shift drag while we're resizing + Editor_state.right = App.screen.width-Margin_right + Editor_state.width = Editor_state.right-Editor_state.left Text.tweak_screen_top_and_cursor(Editor_state, Editor_state.left, Editor_state.right) Last_resize_time = App.getTime() end |