nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 6ed0a12d808effada4a9b9f4ca05f765a5f6f82f
parent dda9d4e357749bd6f7b23b20888b4109485068ef
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Mon, 15 Oct 2018 14:46:15 -0500

tweaks: join two lines, and add a clarifying comment

Diffstat:
Msrc/proto.h | 3+--
Msrc/winio.c | 1+
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/proto.h b/src/proto.h @@ -59,8 +59,7 @@ extern int controlleft, controlright; extern int controlup, controldown; extern int controlhome, controlend; #ifndef NANO_TINY -extern int controldelete; -extern int controlshiftdelete; +extern int controldelete, controlshiftdelete; extern int shiftleft, shiftright; extern int shiftup, shiftdown; extern int shiftcontrolleft, shiftcontrolright; diff --git a/src/winio.c b/src/winio.c @@ -601,6 +601,7 @@ int parse_kbinput(WINDOW *win) * Shift/Ctrl/Alt are being held together with them. */ unsigned char modifiers = 6; + /* Modifiers are: Alt (8), Ctrl (4), Shift (1). */ if (on_a_vt && ioctl(0, TIOCLINUX, &modifiers) >= 0) { #ifndef NANO_TINY /* Is Shift being held? */