nano

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

commit 3a5e6f93175b85f7731db86377bc6189990aa6f6
parent 475c402b6554b58f610c07731e95f0c90df6f162
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Mon, 30 Jan 2006 21:23:51 +0000

handle Shift-Delete properly when the -d option is used


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3266 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/winio.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c @@ -478,7 +478,8 @@ int parse_kbinput(WINDOW *win, bool *meta_key, bool *func_key #ifdef KEY_SDC /* Slang doesn't support KEY_SDC. */ case KEY_SDC: - retval = NANO_DELETE_KEY; + retval = ISSET(REBIND_DELETE) ? + NANO_BACKSPACE_KEY : NANO_DELETE_KEY; break; #endif #ifdef KEY_SEND