Scroll command window to bottom on ctrl-k. - sam - An updated version of the sa… | |
git clone git://vernunftzentrum.de/sam.git | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 03cb67e61d14c9e68b8308230b585068587a164e | |
parent 4b6e1852d12a306e2fab4f2efa41ab70dfd60afc | |
Author: Rob King <[email protected]> | |
Date: Mon, 2 May 2016 11:45:55 -0500 | |
Scroll command window to bottom on ctrl-k. | |
Diffstat: | |
samterm/main.c | 6 ++++-- | |
1 file changed, 4 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/samterm/main.c b/samterm/main.c | |
@@ -672,10 +672,12 @@ type(Flayer *l, int res) /* what a bloody mess thi… | |
if (flast) | |
current(flast); | |
}else{ | |
+ l = &cmd.l[0]; | |
+ Text *t = (Text *)l->user1; | |
flast = which; | |
- current(&cmd.l[0]); | |
+ current(l); | |
flushtyping(0); | |
- flsetselect(&cmd.l[0], a, a); | |
+ flsetselect(l, t->rasp.nrunes, t->rasp.nrunes); | |
center(l, a); | |
} | |
}else{ |