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

fix file browser breakage

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3279 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 5 additions and 1 deletion
+5 -1
......@@ -34,7 +34,7 @@
* Assume path has already been tilde-expanded. */
char *do_browser(char *path, DIR *dir)
{
int kbinput = ERR, longest, selected = 0, width = 0;
int kbinput, longest, selected, width;
bool meta_key = FALSE, func_key = FALSE;
bool old_const_update = ISSET(CONST_UPDATE);
size_t numents;
......@@ -54,6 +54,10 @@ char *do_browser(char *path, DIR *dir)
change_browser_directory:
/* We go here after the user selects a new directory. */
kbinput = ERR;
selected = 0;
width = 0;
path = mallocstrassn(path, get_full_path(path));
/* Assume that path exists and ends with a slash. */
......
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