From: David Lawrence Ramsey Date: Fri, 11 Feb 2005 16:23:56 +0000 (+0000) Subject: set statusbar_xend properly when doing tab completion X-Git-Tag: v1.3.6~88 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2724c88717b260e05dd32233a654099f95c8db46;p=nano.git set statusbar_xend properly when doing tab completion git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2315 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/winio.c b/src/winio.c index fe54fa1e..8553d664 100644 --- a/src/winio.c +++ b/src/winio.c @@ -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