commit 2a894213e0f8bff7116db1bd4c168df3b305a826
parent 826be439db7987cacd5612ef8d0399ccbee44f88
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 7 Oct 2018 10:24:19 +0200
tweaks: group a series of related variables together
Diffstat:
2 files changed, 14 insertions(+), 25 deletions(-)
diff --git a/src/global.c b/src/global.c
@@ -68,7 +68,8 @@ bool also_the_last = FALSE;
int didfind = 0;
/* Whether the last search found something. */
-int controlleft, controlright, controlup, controldown, controlhome, controlend;
+int controlleft, controlright, controlup, controldown;
+int controlhome, controlend;
int controldelete, controlshiftdelete;
#ifndef NANO_TINY
int shiftleft, shiftright, shiftup, shiftdown;
diff --git a/src/proto.h b/src/proto.h
@@ -55,33 +55,21 @@ extern bool also_the_last;
extern int didfind;
-extern int controlleft;
-extern int controlright;
-extern int controlup;
-extern int controldown;
-extern int controlhome;
-extern int controlend;
+extern int controlleft, controlright;
+extern int controlup, controldown;
+extern int controlhome, controlend;
#ifndef NANO_TINY
extern int controldelete;
extern int controlshiftdelete;
-extern int shiftleft;
-extern int shiftright;
-extern int shiftup;
-extern int shiftdown;
-extern int shiftcontrolleft;
-extern int shiftcontrolright;
-extern int shiftcontrolup;
-extern int shiftcontroldown;
-extern int shiftcontrolhome;
-extern int shiftcontrolend;
-extern int altleft;
-extern int altright;
-extern int altup;
-extern int altdown;
-extern int shiftaltleft;
-extern int shiftaltright;
-extern int shiftaltup;
-extern int shiftaltdown;
+extern int shiftleft, shiftright;
+extern int shiftup, shiftdown;
+extern int shiftcontrolleft, shiftcontrolright;
+extern int shiftcontrolup, shiftcontroldown;
+extern int shiftcontrolhome, shiftcontrolend;
+extern int altleft, altright;
+extern int altup, altdown;
+extern int shiftaltleft, shiftaltright;
+extern int shiftaltup, shiftaltdown;
#endif
#ifdef ENABLED_WRAPORJUSTIFY