about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-20 06:00:20 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-20 06:00:20 -0700
commit05ac4a5057ae8992fb920c6ba3641552ecd4c377 (patch)
tree012d7b9b4f6e2589b754ccd4cb4640341dcbbc46
parentbca0c1fab97dcac2231f47ae18bd582b70775076 (diff)
downloadtext.love-05ac4a5057ae8992fb920c6ba3641552ecd4c377.tar.gz
move
-rw-r--r--main.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.lua b/main.lua
index 870863d..b4059ad 100644
--- a/main.lua
+++ b/main.lua
@@ -37,8 +37,6 @@ require 'icons'
 -- solving for them. But for now, this is a program to create static drawings
 -- once, and read them passively thereafter.
 Lines = {{mode='text', data=''}}
-Screen_top_line = 1
-Screen_bottom_line = 1
 Cursor_line = 1
 Cursor_pos = 1  -- in Unicode codepoints, from 1 to utf8.len(line) + 1
 
@@ -46,6 +44,10 @@ Screen_width, Screen_height, Screen_flags = 0, 0, nil
 
 Cursor_x, Cursor_y = 0, 0  -- in pixels
 
+-- scrolling support
+Screen_top_line = 1
+Screen_bottom_line = 1
+
 Current_drawing_mode = 'line'
 Previous_drawing_mode = nil