]> git.wh0rd.org Git - nano.git/commitdiff
make sure we refresh the statusbar prompt text when tab-completing or
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Tue, 8 Nov 2005 01:49:14 +0000 (01:49 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Tue, 8 Nov 2005 01:49:14 +0000 (01:49 +0000)
moving through history

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

src/prompt.c

index c50c729e6f38e439a739b8128679baf32ff16ed2..4e5293f8026d99a4f0f7cd230b08ffe5991acad6 100644 (file)
@@ -802,6 +802,8 @@ int get_prompt_string(bool allow_tabs, const char *curranswer,
                if (allow_tabs)
                    answer = input_tab(answer, &statusbar_x, &tabbed,
                        list);
+
+               update_statusbar_line(answer, statusbar_x);
 #endif /* !DISABLE_TABCOMP */
                break;
            case NANO_PREVLINE_KEY:
@@ -824,6 +826,8 @@ int get_prompt_string(bool allow_tabs, const char *curranswer,
                        statusbar_x = strlen(answer);
                    }
 
+                   update_statusbar_line(answer, statusbar_x);
+
                    /* This key has a shortcut list entry when it's used
                     * to move to an older search, which means that
                     * finished has been set to TRUE.  Set it back to
@@ -854,6 +858,8 @@ int get_prompt_string(bool allow_tabs, const char *curranswer,
                        answer = mallocstrcpy(answer, magichistory);
                        statusbar_x = strlen(answer);
                    }
+
+                   update_statusbar_line(answer, statusbar_x);
                }
 #endif /* !NANO_SMALL */
                break;