From 3a5e6f93175b85f7731db86377bc6189990aa6f6 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Mon, 30 Jan 2006 21:23:51 +0000 Subject: [PATCH] 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 --- src/winio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5