circo

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

commit cdf798c3a3bbea044003801ca2ea87e0926ae4a8
parent fea732c222f204bbb3cf936aa08db2887d617086
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Wed,  2 Aug 2017 22:29:10 +0200

Prevent positive integers for keys.

Diffstat:
Mcirco.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/circo.c b/circo.c @@ -48,7 +48,7 @@ char *argv0; #define CTRL_ALT(k) ((k) + (129 - 'a')) /* enums */ -enum { KeyUp, KeyDown, KeyRight, KeyLeft, KeyHome, KeyEnd, KeyDel, KeyPgUp, KeyPgDw, KeyBackspace }; +enum { KeyUp = -50, KeyDown, KeyRight, KeyLeft, KeyHome, KeyEnd, KeyDel, KeyPgUp, KeyPgDw, KeyBackspace }; enum { LineToOffset, OffsetToLine, TotalLines }; /* bufinfo() flags */ typedef union {