Fixing compilation when configured with --enable-tiny plus --enable-browser.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5718 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
8a5ae2130b
commit
fb7f7011ec
|
@ -1,3 +1,7 @@
|
||||||
|
2016-03-11 Benno Schulenberg <bensberg@justemail.net>
|
||||||
|
* src/browser.c (do_browser): Fix compilation when configured with
|
||||||
|
--enable-tiny plus --enable-browser.
|
||||||
|
|
||||||
2016-03-10 Benno Schulenberg <bensberg@justemail.net>
|
2016-03-10 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/rcfile.c (grab_and_store): Do not accept 'header" and 'magic'
|
* src/rcfile.c (grab_and_store): Do not accept 'header" and 'magic'
|
||||||
commands for the default syntax. This fixes Savannah bug #47323.
|
commands for the default syntax. This fixes Savannah bug #47323.
|
||||||
|
|
|
@ -128,11 +128,13 @@ char *do_browser(char *path, DIR *dir)
|
||||||
/* Make sure the selected file is within range. */
|
/* Make sure the selected file is within range. */
|
||||||
if (selected >= filelist_len)
|
if (selected >= filelist_len)
|
||||||
selected = filelist_len - 1;
|
selected = filelist_len - 1;
|
||||||
|
|
||||||
|
kbinput = ERR;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/* Display (or redisplay) the file list if we don't have a key yet,
|
/* Display (or redisplay) the file list if we don't have a key yet,
|
||||||
* or the list has changed, or the selected file has changed. */
|
* or the list has changed, or the selected file has changed. */
|
||||||
if (kbinput == ERR || kbinput == KEY_WINCH || old_selected != selected)
|
if (kbinput == ERR || old_selected != selected)
|
||||||
browser_refresh();
|
browser_refresh();
|
||||||
|
|
||||||
old_selected = selected;
|
old_selected = selected;
|
||||||
|
|
Loading…
Reference in New Issue