about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.lua b/main.lua
index b95fb00..2c79b77 100644
--- a/main.lua
+++ b/main.lua
@@ -191,7 +191,7 @@ function App.resize(w, h)
   App.screen.width, App.screen.height = w, h
   Text.redraw_all()
   Selection1 = {}  -- no support for shift drag while we're resizing
-  Text.tweak_screen_top_and_cursor()
+  Text.tweak_screen_top_and_cursor(Margin_left, App.screen.height-Margin_right)
   Last_resize_time = App.getTime()
 end
 
@@ -272,7 +272,7 @@ function App.draw()
         line.startpos = Screen_top1.pos
       end
 --?       print('text.draw', y, line_index)
-      y, Screen_bottom1.pos = Text.draw(line, line_index)
+      y, Screen_bottom1.pos = Text.draw(line, line_index, line.starty, Margin_left, App.screen.width-Margin_right)
       y = y + Line_height
 --?       print('=> y', y)
     end