nano

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

commit 615570cf5e37e808cf8fb5f0b34dd07bae7ddc89
parent aff9f4742cc1f4caaa7df9c61debb497788ae7e8
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun,  9 Mar 2025 10:25:45 +0100

tweaks: remove two commented-out lines and two unused variables

And harmonize some whitespace.

Diffstat:
Msrc/definitions.h | 14++++++--------
Msrc/global.c | 2+-
Msrc/prototypes.h | 1-
3 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/src/definitions.h b/src/definitions.h @@ -205,8 +205,6 @@ #define SHIFT_ALT_RIGHT 0x432 #define SHIFT_ALT_UP 0x433 #define SHIFT_ALT_DOWN 0x434 -//#define SHIFT_LEFT 0x451 -//#define SHIFT_RIGHT 0x452 #define SHIFT_UP 0x453 #define SHIFT_DOWN 0x454 #define SHIFT_HOME 0x455 @@ -216,16 +214,16 @@ #define SHIFT_DELETE 0x45D #define SHIFT_TAB 0x45F -#define FOCUS_IN 0x491 -#define FOCUS_OUT 0x499 +#define FOCUS_IN 0x491 +#define FOCUS_OUT 0x499 /* Special keycodes for when a string bind has been partially implanted * or has an unpaired opening brace, or when a function in a string bind * needs execution or a specified function name is invalid. */ -#define MORE_PLANTS 0x4EA -#define MISSING_BRACE 0x4EB -#define PLANTED_A_COMMAND 0x4EC -#define NO_SUCH_FUNCTION 0x4EF +#define MORE_PLANTS 0x4EA +#define MISSING_BRACE 0x4EB +#define PLANTED_A_COMMAND 0x4EC +#define NO_SUCH_FUNCTION 0x4EF #ifndef NANO_TINY /* A special keycode for Ctrl + the central key on the numeric keypad. */ diff --git a/src/global.c b/src/global.c @@ -105,7 +105,7 @@ int controlleft, controlright, controlup, controldown; int controlhome, controlend; #ifndef NANO_TINY int controldelete, controlshiftdelete; -int shiftleft, shiftright, shiftup, shiftdown; +int shiftup, shiftdown; int shiftcontrolleft, shiftcontrolright, shiftcontrolup, shiftcontroldown; int shiftcontrolhome, shiftcontrolend; int altleft, altright, altup, altdown; diff --git a/src/prototypes.h b/src/prototypes.h @@ -70,7 +70,6 @@ extern int controlup, controldown; extern int controlhome, controlend; #ifndef NANO_TINY extern int controldelete, controlshiftdelete; -extern int shiftleft, shiftright; extern int shiftup, shiftdown; extern int shiftcontrolleft, shiftcontrolright; extern int shiftcontrolup, shiftcontroldown;