Commit f8d085d2 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

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
No related merge requests found
Showing with 7 additions and 0 deletions
+7 -0
...@@ -30,6 +30,8 @@ CVS code - ...@@ -30,6 +30,8 @@ CVS code -
before it, as titlebar() does. (DLR) before it, as titlebar() does. (DLR)
- Add translator comments explaining the maximum intended - Add translator comments explaining the maximum intended
lengths of "(dir)" and "(parent dir)". (DLR) lengths of "(dir)" and "(parent dir)". (DLR)
- Fix problem where width wouldn't be properly initialized
sometimes. (DLR)
browser_select_filename() browser_select_filename()
- New function, used to select a specific filename in the list. - New function, used to select a specific filename in the list.
(DLR) (DLR)
......
...@@ -683,6 +683,11 @@ void browser_refresh(void) ...@@ -683,6 +683,11 @@ void browser_refresh(void)
wmove(edit, line, col); wmove(edit, line, col);
} }
/* Set the number of columns to display the list in, if
* necessary. */
if (width == 0)
width = longest;
wnoutrefresh(edit); wnoutrefresh(edit);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment