1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00

38463: use immortal widgets in .safe keymap

This commit is contained in:
Barton E. Schaefer 2016-05-10 13:20:53 -07:00
parent 29e88b3ea3
commit 597fa5ee5d
2 changed files with 12 additions and 8 deletions

View file

@ -1,3 +1,7 @@
2016-05-10 Barton E. Schaefer <schaefer@zsh.org>
* 38463: Src/Zle/zle_keymap.c: use immortal widgets in .safe keymap
2016-05-10 Daniel Shahaf <d.s@daniel.shahaf.name>
* unposted: Functions/Math/.distfiles, Functions/Math/zmathfunc:

View file

@ -1322,15 +1322,15 @@ default_bindings(void)
amap->first[i] = refthingy(t_undefinedkey);
/* safe fallback keymap:
* 0-255 self-insert, except: *
* '\n' accept-line *
* '\r' accept-line */
* 0-255 .self-insert, except: *
* '\n' .accept-line *
* '\r' .accept-line */
for (i = 0; i < 256; i++)
smap->first[i] = refthingy(t_selfinsert);
unrefthingy(t_selfinsert);
unrefthingy(t_selfinsert);
smap->first['\n'] = refthingy(t_acceptline);
smap->first['\r'] = refthingy(t_acceptline);
smap->first[i] = refthingy(t_Dselfinsert);
unrefthingy(t_Dselfinsert);
unrefthingy(t_Dselfinsert);
smap->first['\n'] = refthingy(t_Dacceptline);
smap->first['\r'] = refthingy(t_Dacceptline);
/* vt100 arrow keys are bound by default, for historical reasons. *
* Both standard and keypad modes are supported. */