Handle scrolling to the last line. - sam - An updated version of the sam text editor.
(HTM) git clone git://vernunftzentrum.de/sam.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 9f7a29efdb404b8c774a67e26988e06644970418
(DIR) parent d9b184f7d9f20ba133be3853c96a2c609bf6da60
(HTM) Author: Rob King <jking@deadpixi.com>
Date: Fri, 23 Jun 2017 16:09:15 -0500
Handle scrolling to the last line.
Diffstat:
samterm/main.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/samterm/main.c b/samterm/main.c
@@ -552,7 +552,9 @@ cmdscrolldownline(Flayer *l, int64_t a, Text *t, const char *arg)
x++;
horigin(t->tag, x + 1, l);
- }
+ } else if (l->f.lastlinefull)
+ horigin(t->tag, l->origin + 1, l);
+
return a;
}