]> git.wh0rd.org Git - nano.git/commitdiff
handle Shift-Delete properly when the -d option is used
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 30 Jan 2006 21:23:51 +0000 (21:23 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 30 Jan 2006 21:23:51 +0000 (21:23 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3266 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/winio.c

index 487365d7c95ca53b31782307595992fb314e326e..08faf5b6c03c452073b3d7b8c1cbe1ff3307e52f 100644 (file)
@@ -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