From: David Lawrence Ramsey Date: Mon, 30 Jan 2006 21:23:51 +0000 (+0000) Subject: handle Shift-Delete properly when the -d option is used X-Git-Tag: v1.3.11~60 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3a5e6f93175b85f7731db86377bc6189990aa6f6;p=nano.git 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 --- diff --git a/src/winio.c b/src/winio.c index 487365d7..08faf5b6 100644 --- 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