about summary refs log tree commit diff stats
path: root/source_select.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2024-06-11 11:10:34 -0700
committerKartik K. Agaram <vc@akkartik.com>2024-06-11 11:10:34 -0700
commit55f5c2d696ffba6c5d220d8e317c15ed2335ac7b (patch)
tree40087d23284f702825522964560409f8d0a00acb /source_select.lua
parent7aa43d1d2dd57792c447ba40cdf05791e3301123 (diff)
downloadtext.love-55f5c2d696ffba6c5d220d8e317c15ed2335ac7b.tar.gz
crap, fix some final changes in the source editor
Diffstat (limited to 'source_select.lua')
-rw-r--r--source_select.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/source_select.lua b/source_select.lua
index 78d18db..b67dd16 100644
--- a/source_select.lua
+++ b/source_select.lua
@@ -69,7 +69,7 @@ end
 
 function Text.mouse_pos(State)
   local x,y = App.mouse_x(), App.mouse_y()
-  if y < State.line_cache[State.screen_top1.line].starty then
+  if y < State.top then
     return State.screen_top1.line, State.screen_top1.pos
   end
   for line_index,line in ipairs(State.lines) do