tweaks: fix compilation when configured with --enable-tiny --enable-browser
parent
cdcd365d34
commit
eedec06cc4
|
@ -171,12 +171,16 @@ char *do_browser(char *path, DIR *dir)
|
||||||
if (func == total_refresh) {
|
if (func == total_refresh) {
|
||||||
total_redraw();
|
total_redraw();
|
||||||
/* Simulate a window resize to force a directory reread. */
|
/* Simulate a window resize to force a directory reread. */
|
||||||
|
#ifndef NANO_TINY
|
||||||
kbinput = KEY_WINCH;
|
kbinput = KEY_WINCH;
|
||||||
|
#endif
|
||||||
} else if (func == do_help_void) {
|
} else if (func == do_help_void) {
|
||||||
#ifndef DISABLE_HELP
|
#ifndef DISABLE_HELP
|
||||||
do_help_void();
|
do_help_void();
|
||||||
/* The window dimensions might have changed, so act as if. */
|
/* The window dimensions might have changed, so act as if. */
|
||||||
|
#ifndef NANO_TINY
|
||||||
kbinput = KEY_WINCH;
|
kbinput = KEY_WINCH;
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
say_there_is_no_help();
|
say_there_is_no_help();
|
||||||
#endif
|
#endif
|
||||||
|
@ -269,12 +273,14 @@ char *do_browser(char *path, DIR *dir)
|
||||||
} else if (func == do_down_void) {
|
} else if (func == do_down_void) {
|
||||||
if (selected + width <= filelist_len - 1)
|
if (selected + width <= filelist_len - 1)
|
||||||
selected += width;
|
selected += width;
|
||||||
|
#ifndef NANO_TINY
|
||||||
} else if (func == do_prev_word_void) {
|
} else if (func == do_prev_word_void) {
|
||||||
selected -= (selected % width);
|
selected -= (selected % width);
|
||||||
} else if (func == do_next_word_void) {
|
} else if (func == do_next_word_void) {
|
||||||
selected += width - 1 - (selected % width);
|
selected += width - 1 - (selected % width);
|
||||||
if (selected >= filelist_len)
|
if (selected >= filelist_len)
|
||||||
selected = filelist_len - 1;
|
selected = filelist_len - 1;
|
||||||
|
#endif
|
||||||
} else if (func == do_left) {
|
} else if (func == do_left) {
|
||||||
if (selected > 0)
|
if (selected > 0)
|
||||||
selected--;
|
selected--;
|
||||||
|
|
|
@ -1025,12 +1025,13 @@ void shortcut_init(void)
|
||||||
#ifndef DISABLE_BROWSER
|
#ifndef DISABLE_BROWSER
|
||||||
add_to_funcs(total_refresh, MBROWSER,
|
add_to_funcs(total_refresh, MBROWSER,
|
||||||
refresh_tag, IFSCHELP(nano_browser_refresh_msg), BLANKAFTER, VIEW);
|
refresh_tag, IFSCHELP(nano_browser_refresh_msg), BLANKAFTER, VIEW);
|
||||||
|
#ifndef NANO_TINY
|
||||||
add_to_funcs(do_prev_word_void, MBROWSER,
|
add_to_funcs(do_prev_word_void, MBROWSER,
|
||||||
N_("Left Column"), IFSCHELP(nano_browser_lefthand_msg), TOGETHER, VIEW);
|
N_("Left Column"), IFSCHELP(nano_browser_lefthand_msg), TOGETHER, VIEW);
|
||||||
add_to_funcs(do_next_word_void, MBROWSER,
|
add_to_funcs(do_next_word_void, MBROWSER,
|
||||||
N_("Right Column"), IFSCHELP(nano_browser_righthand_msg), BLANKAFTER, VIEW);
|
N_("Right Column"), IFSCHELP(nano_browser_righthand_msg), BLANKAFTER, VIEW);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef DISABLE_COLOR
|
#ifndef DISABLE_COLOR
|
||||||
add_to_funcs(do_page_up, MLINTER,
|
add_to_funcs(do_page_up, MLINTER,
|
||||||
|
|
Loading…
Reference in New Issue