Fixing a bug where binding a movement function to a Meta key would make
the corresponding Arrow key stop working (producing a character instead). git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5040 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
7e5324d164
commit
776931a0b0
|
@ -5,6 +5,9 @@
|
||||||
* src/color.c (color_update): Move some variables to a better place.
|
* src/color.c (color_update): Move some variables to a better place.
|
||||||
* src/*: Make 'meta_key' and 'func_key' into global variables, instead
|
* src/*: Make 'meta_key' and 'func_key' into global variables, instead
|
||||||
of having them declared everywhere and passing them around endlessly.
|
of having them declared everywhere and passing them around endlessly.
|
||||||
|
* src/global.c (sc_seq_or): Now fix a bug introduced somewhere after
|
||||||
|
2.3.2 where binding a movement function to a Meta key would make the
|
||||||
|
corresponding Arrow key stop working (producing a character instead).
|
||||||
|
|
||||||
2014-06-29 Benno Schulenberg <bensberg@justemail.net>
|
2014-06-29 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/rcfile.c: Fix compilation with --enable-tiny --enable-nanorc.
|
* src/rcfile.c: Fix compilation with --enable-tiny --enable-nanorc.
|
||||||
|
|
|
@ -391,8 +391,10 @@ int sc_seq_or(void (*func)(void), int defaultval)
|
||||||
{
|
{
|
||||||
const sc *s = first_sc_for(currmenu, func);
|
const sc *s = first_sc_for(currmenu, func);
|
||||||
|
|
||||||
if (s)
|
if (s) {
|
||||||
|
meta_key = (s->type == META);
|
||||||
return s->seq;
|
return s->seq;
|
||||||
|
}
|
||||||
/* else */
|
/* else */
|
||||||
return defaultval;
|
return defaultval;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue