]> git.wh0rd.org Git - nano.git/commitdiff
Making the cursor visible again after a justification and after an
authorBenno Schulenberg <bensberg@justemail.net>
Mon, 22 Feb 2016 17:15:28 +0000 (17:15 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Mon, 22 Feb 2016 17:15:28 +0000 (17:15 +0000)
unrecognized escape sequence.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5667 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/text.c
src/winio.c

index 5d93b652c7b824aa4d0d47bb2f1c7b2acd1b3e72..ab7677d1a159b9ccfe8d5465fd1ca00e5fe3ba38 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,9 @@
        * src/prompt.c (do_statusbar_output): Elide a variable.
        * src/prompt.c (do_statusbar_delete): There is no need for nulling:
        the charmove() already copies the terminating null byte.
+       * src/text.c (do_justify), src/winio.c (parse_escape_sequence):
+       Show the cursor after a justification and after an unrecognized
+       escape sequence.
 
 2016-02-21  Benno Schulenberg  <bensberg@justemail.net>
        * src/files.c (input_tab): If the first Tab added the part that all
index f16996d606bdcd0ab06c108000369c0c66af66cb..4523b56077a4e67b8472d45939a8a22ff42397f1 100644 (file)
@@ -2234,6 +2234,7 @@ void do_justify(bool full_justify)
     do {
 #endif
        statusbar(_("Can now UnJustify!"));
+       curs_set(1);
        kbinput = do_input(FALSE);
 #ifndef NANO_TINY
     } while (kbinput == KEY_WINCH);
index ce3c522e700092e59f6d58a56725c48b06b14628..d55fd920d919e58aac6ddfd1226f94f43fc68cff 100644 (file)
@@ -1123,6 +1123,7 @@ int parse_escape_sequence(WINDOW *win, int kbinput)
     if (retval == ERR) {
        if (win == edit) {
            statusbar(_("Unknown Command"));
+           curs_set(1);
            beep();
        }
     }