in get_control_kbinput(), fix Ctrl-? breakage
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3532 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
39bd1b3597
commit
51cb7fd293
|
@ -1368,8 +1368,11 @@ int get_control_kbinput(int kbinput)
|
||||||
/* Ctrl-8 (Ctrl-?) */
|
/* Ctrl-8 (Ctrl-?) */
|
||||||
else if (kbinput == '8')
|
else if (kbinput == '8')
|
||||||
retval = kbinput + 71;
|
retval = kbinput + 71;
|
||||||
/* Ctrl-? (Ctrl-8) to Ctrl-_ (Ctrl-/, Ctrl-7) */
|
/* Ctrl-? (Ctrl-8) */
|
||||||
else if ('?' <= kbinput && kbinput <= '_')
|
else if (kbinput == '?')
|
||||||
|
retval = kbinput + 64;
|
||||||
|
/* Ctrl-@ (Ctrl-Space, Ctrl-2, Ctrl-`) to Ctrl-_ (Ctrl-/, Ctrl-7) */
|
||||||
|
else if ('@' <= kbinput && kbinput <= '_')
|
||||||
retval = kbinput - 64;
|
retval = kbinput - 64;
|
||||||
/* Ctrl-` (Ctrl-2, Ctrl-Space, Ctrl-@) to Ctrl-~ (Ctrl-6, Ctrl-^) */
|
/* Ctrl-` (Ctrl-2, Ctrl-Space, Ctrl-@) to Ctrl-~ (Ctrl-6, Ctrl-^) */
|
||||||
else if ('`' <= kbinput && kbinput <= '~')
|
else if ('`' <= kbinput && kbinput <= '~')
|
||||||
|
|
Loading…
Reference in New Issue