From: David Lawrence Ramsey Date: Tue, 4 Jul 2006 23:47:22 +0000 (+0000) Subject: in browser_refresh(), fix problem where width wouldn't be properly X-Git-Tag: v1.9.99pre1~123 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f8d085d2ed4e600d3e80aca9048faaaa9817f032;p=nano.git in browser_refresh(), fix problem where width wouldn't be properly initialized sometimes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3738 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index b38afad5..09e66a19 100644 --- a/ChangeLog +++ b/ChangeLog @@ -30,6 +30,8 @@ CVS code - before it, as titlebar() does. (DLR) - Add translator comments explaining the maximum intended lengths of "(dir)" and "(parent dir)". (DLR) + - Fix problem where width wouldn't be properly initialized + sometimes. (DLR) browser_select_filename() - New function, used to select a specific filename in the list. (DLR) diff --git a/src/browser.c b/src/browser.c index 2a3f1597..844b4738 100644 --- a/src/browser.c +++ b/src/browser.c @@ -683,6 +683,11 @@ void browser_refresh(void) wmove(edit, line, col); } + /* Set the number of columns to display the list in, if + * necessary. */ + if (width == 0) + width = longest; + wnoutrefresh(edit); }