nano

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

commit d2b25120f0548567a3df3097cd9681f84e932f20
parent 0c319f8b4b40db93479506ab76d53f37f1afa8e9
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Sun, 10 Jul 2016 21:36:25 +0200

tweaks: fuse two handlings of a delete key, and fix a comment

Diffstat:
Msrc/winio.c | 9+++------
1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/winio.c b/src/winio.c @@ -552,7 +552,7 @@ int parse_kbinput(WINDOW *win) retval = sc_seq_or(do_page_up, *kbinput); break; case KEY_NPAGE: - case KEY_C3: /* PageDown (4) on keypad with NumLock off. */ + case KEY_C3: /* PageDown (3) on keypad with NumLock off. */ retval = sc_seq_or(do_page_down, *kbinput); break; @@ -562,19 +562,16 @@ int parse_kbinput(WINDOW *win) case KEY_BACKSPACE: retval = sc_seq_or(do_backspace, *kbinput); break; - case NANO_CONTROL_8: - retval = ISSET(REBIND_DELETE) ? sc_seq_or(do_delete, 0) : - sc_seq_or(do_backspace, 0); - break; #ifdef KEY_SDC /* Slang doesn't support KEY_SDC. */ case KEY_SDC: +#endif + case NANO_CONTROL_8: if (ISSET(REBIND_DELETE)) retval = sc_seq_or(do_delete, *kbinput); else retval = sc_seq_or(do_backspace, *kbinput); break; -#endif #ifdef KEY_SIC /* Slang doesn't support KEY_SIC. */ case KEY_SIC: