From 44fb3ecd55a7b0cd45b604d5431811e0852a4714 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 26 Jun 2022 16:34:06 -0700 Subject: bugfix: deleting a selection spanning pages --- select.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'select.lua') diff --git a/select.lua b/select.lua index 219fe3e..59f79d0 100644 --- a/select.lua +++ b/select.lua @@ -133,6 +133,10 @@ function Text.delete_selection_without_undo() -- update Cursor1 and Selection1 Cursor1.line = minl Cursor1.pos = minp + if Text.lt1(Cursor1, Screen_top1) then + Screen_top1.line = Cursor1.line + _,Screen_top1.pos = Text.pos_at_start_of_cursor_screen_line() + end Selection1 = {} -- delete everything between min (inclusive) and max (exclusive) Text.clear_cache(Lines[minl]) -- cgit 1.4.1-2-gfad0 2179d'>this commit Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/static_dispatch.mu
blob: 00160a2a0e7e11b7c453fd64d5748ef504e3afbb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21