in do_browser(), properly set currshortcut back to the file browser
shortcut list after a "Go To Directory" prompt git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3276 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
91a2a69c4f
Коммит
24e0a465c1
@ -17,6 +17,10 @@ CVS code -
|
|||||||
- Rework input parsing in the file browser to be more flexible.
|
- Rework input parsing in the file browser to be more flexible.
|
||||||
New function parse_browser_input(); changes to do_browser().
|
New function parse_browser_input(); changes to do_browser().
|
||||||
(DLR)
|
(DLR)
|
||||||
|
- browser.c:
|
||||||
|
do_browser()
|
||||||
|
- Properly set currshortcut back to the file browser shortcut
|
||||||
|
list after a "Go To Directory" prompt. (DLR)
|
||||||
- chars.c:
|
- chars.c:
|
||||||
mbstrchr()
|
mbstrchr()
|
||||||
- Make parameter c const. (DLR)
|
- Make parameter c const. (DLR)
|
||||||
|
@ -42,14 +42,12 @@ char *do_browser(char *path, DIR *dir)
|
|||||||
|
|
||||||
curs_set(0);
|
curs_set(0);
|
||||||
blank_statusbar();
|
blank_statusbar();
|
||||||
bottombars(browser_list);
|
|
||||||
wnoutrefresh(bottomwin);
|
|
||||||
|
|
||||||
#if !defined(DISABLE_HELP) || !defined(DISABLE_MOUSE)
|
#if !defined(DISABLE_HELP) || !defined(DISABLE_MOUSE)
|
||||||
/* Set currshortcut so the user can click in the shortcut area, and
|
|
||||||
* so the browser help screen will come up. */
|
|
||||||
currshortcut = browser_list;
|
currshortcut = browser_list;
|
||||||
#endif
|
#endif
|
||||||
|
bottombars(browser_list);
|
||||||
|
wnoutrefresh(bottomwin);
|
||||||
|
|
||||||
UNSET(CONST_UPDATE);
|
UNSET(CONST_UPDATE);
|
||||||
|
|
||||||
@ -242,6 +240,9 @@ char *do_browser(char *path, DIR *dir)
|
|||||||
_("Go To Directory"));
|
_("Go To Directory"));
|
||||||
|
|
||||||
curs_set(0);
|
curs_set(0);
|
||||||
|
#if !defined(DISABLE_HELP) || !defined(DISABLE_MOUSE)
|
||||||
|
currshortcut = browser_list;
|
||||||
|
#endif
|
||||||
bottombars(browser_list);
|
bottombars(browser_list);
|
||||||
|
|
||||||
if (j < 0) {
|
if (j < 0) {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user