about summary refs log tree commit diff stats
path: root/text.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2024-10-29 18:46:33 -0700
committerKartik K. Agaram <vc@akkartik.com>2024-10-29 18:46:33 -0700
commit883ad16cd253d25963edc020ea1c1d827de74b79 (patch)
tree46693932d5635ccd8d41e2b4c04425e39403197a /text.lua
parent7e5653c8d39f6cc9393ed2cefb55b3de9640d3d3 (diff)
downloadtext.love-883ad16cd253d25963edc020ea1c1d827de74b79.tar.gz
some more renames
Diffstat (limited to 'text.lua')
-rw-r--r--text.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/text.lua b/text.lua
index e3802c6..da4d2a1 100644
--- a/text.lua
+++ b/text.lua
@@ -610,7 +610,7 @@ function Text.pos_at_end_of_screen_line(State, loc1)
   assert(false, ('invalid pos %d'):format(loc1.pos))
 end
 
-function Text.final_text_loc_on_screen(State)
+function Text.final_loc_on_screen(State)
   local screen_bottom1 = Text.screen_bottom1(State)
   return {
     line=screen_bottom1.line,
@@ -926,7 +926,7 @@ function Text.tweak_screen_top_and_cursor(State)
     State.cursor1 = deepcopy(State.screen_top1)
   elseif State.cursor1.line >= screen_bottom1.line then
     if Text.cursor_out_of_screen(State) then
-      State.cursor1 = Text.final_text_loc_on_screen(State)
+      State.cursor1 = Text.final_loc_on_screen(State)
     end
   end
 end