Handle scrolling to the last line. - sam - An updated version of the sam text e… | |
git clone git://vernunftzentrum.de/sam.git | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 9f7a29efdb404b8c774a67e26988e06644970418 | |
parent d9b184f7d9f20ba133be3853c96a2c609bf6da60 | |
Author: Rob King <[email protected]> | |
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(-) | |
--- | |
diff --git a/samterm/main.c b/samterm/main.c | |
@@ -552,7 +552,9 @@ cmdscrolldownline(Flayer *l, int64_t a, Text *t, const char… | |
x++; | |
horigin(t->tag, x + 1, l); | |
- } | |
+ } else if (l->f.lastlinefull) | |
+ horigin(t->tag, l->origin + 1, l); | |
+ | |
return a; | |
} | |