- Fix a misbinding of <Bsp>
When curses gives no code for Ctrl+Shift+Delete, do not fall back to KEY_BACKSPACE, because then ^H and/or <Backspace> get bound to 'cutwordleft'. This fixes https://savannah.gnu.org/bugs/?54642. Bug was introduced with version 3.0, commit e6429e78. Reported by: eadler
This commit is contained in:
parent
77fcd35ebe
commit
03f6c24e87
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=479768
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= nano
|
||||
PORTVERSION= 3.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= editors
|
||||
MASTER_SITES= http://www.nano-editor.org/dist/v${PORTVERSION:R}/ GNU
|
||||
|
||||
|
11
editors/nano/files/patch-src_nano.c
Normal file
11
editors/nano/files/patch-src_nano.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/nano.c.orig 2018-09-14 11:02:24 UTC
|
||||
+++ src/nano.c
|
||||
@@ -2580,7 +2580,7 @@ int main(int argc, char **argv)
|
||||
controlhome = get_keycode("kHOM5", CONTROL_HOME);
|
||||
controlend = get_keycode("kEND5", CONTROL_END);
|
||||
controldelete = get_keycode("kDC5", CONTROL_DELETE);
|
||||
- controlshiftdelete = get_keycode("kDC6", KEY_BACKSPACE);
|
||||
+ controlshiftdelete = get_keycode("kDC6", CONTROL_SHIFT_DELETE);
|
||||
#ifndef NANO_TINY
|
||||
/* Ask for the codes for Shift+Control+Left/Right/Up/Down. */
|
||||
shiftcontrolleft = get_keycode("kLFT6", SHIFT_CONTROL_LEFT);
|
10
editors/nano/files/patch-src_nano.h
Normal file
10
editors/nano/files/patch-src_nano.h
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/nano.h.orig 2018-09-14 11:02:29 UTC
|
||||
+++ src/nano.h
|
||||
@@ -588,6 +588,7 @@ enum
|
||||
#define SHIFT_CONTROL_DOWN 0x414
|
||||
#define SHIFT_CONTROL_HOME 0x415
|
||||
#define SHIFT_CONTROL_END 0x416
|
||||
+#define CONTROL_SHIFT_DELETE 0x417
|
||||
#define ALT_LEFT 0x421
|
||||
#define ALT_RIGHT 0x422
|
||||
#define ALT_UP 0x423
|
Loading…
Reference in New Issue
Block a user