]> git.wh0rd.org Git - nano.git/commitdiff
set statusbar_xend properly when doing tab completion
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 11 Feb 2005 16:23:56 +0000 (16:23 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Fri, 11 Feb 2005 16:23:56 +0000 (16:23 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2315 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/winio.c

index fe54fa1e4ba34214aa830f7e23d2999383b1b4a7..8553d6640bcb89a18c7d79993b20bf437da894bd 100644 (file)
@@ -2531,7 +2531,7 @@ int nanogetstr(bool allow_tabs, const char *buf, const char *def,
 #ifndef DISABLE_TABCOMP
            if (allow_tabs) {
                answer = input_tab(answer, &statusbar_x, &tabbed, list);
-               statusbar_xend = statusbar_x;
+               statusbar_xend = strlen(answer);
            }
            break;
 #endif