From 6e2137c5b6bde9c84e96cd919fce38581558b917 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 16 Sep 2023 22:39:51 -0700 Subject: [PATCH] bugfix to the helper I added yesterday --- edit.lua | 1 + source_edit.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/edit.lua b/edit.lua index d30dbdc..b9bd9c4 100644 --- a/edit.lua +++ b/edit.lua @@ -113,6 +113,7 @@ function edit.check_locs(State) or not edit.cursor_on_text(State) or not Text.le1(State.screen_top1, State.cursor1) then State.screen_top1 = {line=1, pos=1} + State.cursor1 = {line=1, pos=1} edit.put_cursor_on_next_text_line(State) end end diff --git a/source_edit.lua b/source_edit.lua index 506aa41..5c77758 100644 --- a/source_edit.lua +++ b/source_edit.lua @@ -115,6 +115,7 @@ function edit.check_locs(State) or not edit.cursor_on_text(State) or not Text.le1(State.screen_top1, State.cursor1) then State.screen_top1 = {line=1, pos=1} + State.cursor1 = {line=1, pos=1} edit.put_cursor_on_next_text_line(State) end end -- 2.11.4.GIT