nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 727abceb0faff11742a5069583f2073648dba339
parent 5899181a3184a6e90766dcedd48f99d040ff348c
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon,  6 Jul 2020 16:59:35 +0200

tweaks: adjust comments and indentation after the previous change

Diffstat:
Msrc/text.c | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/text.c b/src/text.c @@ -3016,16 +3016,16 @@ void do_verbatim_input(void) /* Read in the first one or two bytes of the next keystroke. */ bytes = get_verbatim_kbinput(edit, &count); + /* When something valid was obtained, unsuppress cursor-position display, + * insert the bytes into the edit buffer, and blank the status bar. */ if (count > 0) { - /* Unsuppress cursor-position display or blank the status bar. */ - if (ISSET(CONSTANT_SHOW)) - lastmessage = VACUUM; - else - wipe_statusbar(); + if (ISSET(CONSTANT_SHOW)) + lastmessage = VACUUM; - /* Insert the bytes into the edit buffer. */ - inject(bytes, count); + inject(bytes, count); + wipe_statusbar(); } else + /* TRANSLATORS: An invalid verbatim Unicode code was typed. */ statusline(ALERT, _("Invalid code")); free(bytes);