circo

claudio's IRC oasis
git clone git://git.bitsmanent.org/circo
Log | Files | Refs | README | LICENSE

commit 2e19f884b82aeb286e4aad5b676a0c5a7c9a0f21
parent 174a11cfe91fffe0707338df6f579beda87cadf2
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Sat, 15 Jul 2017 21:55:07 +0200

Allow to clear scroll.

Diffstat:
Mcirco.c | 5+++++
Mconfig.def.h | 1+
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/circo.c b/circo.c @@ -558,6 +558,11 @@ void scroll(const Arg *arg) { int y; + if(!arg->i) { + sel->offy = 0; + draw(); + return; + } if(sel->ntxt <= rows - 2) return; y = sel->offy + arg->i; diff --git a/config.def.h b/config.def.h @@ -16,4 +16,5 @@ static Key keys[] = { { CTRL('p'), focusprev, {0} }, { KeyPgUp, scroll, {.i = -20} }, { KeyPgDw, scroll, {.i = +20} }, + { KeyEnd, scroll, {.i = 0} }, };