mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 12:51:23 +03:00
input: store key codes in the macro buffer as they come in from ncurses
Otherwise the leading ESC of keystrokes like M-A does not get recorded.
This reverts commit 191cf671
from three weeks ago.
This fixes https://savannah.gnu.org/bugs/?65507.
This commit is contained in:
parent
c2b4c2ae0e
commit
9ae84071eb
@ -290,6 +290,10 @@ void read_keys_from(WINDOW *frame)
|
|||||||
napms(20);
|
napms(20);
|
||||||
|
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
|
#ifndef NANO_TINY
|
||||||
|
if (recording)
|
||||||
|
add_to_macrobuffer(input);
|
||||||
|
#endif
|
||||||
input = wgetch(frame);
|
input = wgetch(frame);
|
||||||
|
|
||||||
/* If there aren't any more characters, stop reading. */
|
/* If there aren't any more characters, stop reading. */
|
||||||
@ -1369,11 +1373,6 @@ int get_kbinput(WINDOW *frame, bool showcursor)
|
|||||||
while (kbinput == ERR)
|
while (kbinput == ERR)
|
||||||
kbinput = parse_kbinput(frame);
|
kbinput = parse_kbinput(frame);
|
||||||
|
|
||||||
#ifndef NANO_TINY
|
|
||||||
if (recording)
|
|
||||||
add_to_macrobuffer(kbinput);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* If we read from the edit window, blank the status bar when it's time. */
|
/* If we read from the edit window, blank the status bar when it's time. */
|
||||||
if (frame == midwin)
|
if (frame == midwin)
|
||||||
blank_it_when_expired();
|
blank_it_when_expired();
|
||||||
|
Loading…
Reference in New Issue
Block a user