Commit 71e452ae authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

screen: improve the conditional placement of a help-line item

When compiled with --disable-justify, try to keep the vertical pairing
of related items.
parent 18bdde4a
Showing with 9 additions and 4 deletions
+9 -4
......@@ -791,7 +791,7 @@ void shortcut_init(void)
add_to_funcs(do_cursorpos_void, MMAIN,
N_("Cur Pos"), IFSCHELP(nano_cursorpos_msg), TOGETHER, VIEW);
#if !defined(NANO_TINY) || defined(DISABLE_COLOR)
#if defined(DISABLE_COLOR) || !defined(DISABLE_JUSTIFY)
/* Conditionally placing this one here or further on, to keep the
* help items nicely paired in most conditions. */
add_to_funcs(do_gotolinecolumn_void, MMAIN|MWHEREIS,
......@@ -882,8 +882,8 @@ void shortcut_init(void)
N_("Next File"), IFSCHELP(nano_nextfile_msg), BLANKAFTER, VIEW);
#endif
#if defined(NANO_TINY) && !defined(DISABLE_COLOR)
add_to_funcs(do_gotolinecolumn_void, MMAIN|MWHEREIS,
#if !defined(DISABLE_COLOR) && defined(DISABLE_JUSTIFY)
add_to_funcs(do_gotolinecolumn_void, MMAIN,
gotoline_tag, IFSCHELP(nano_gotoline_msg), BLANKAFTER, VIEW);
#endif
......@@ -948,7 +948,12 @@ void shortcut_init(void)
N_("PrevHstory"), IFSCHELP(nano_prev_history_msg), TOGETHER, VIEW);
add_to_funcs(get_history_newer_void,
(MWHEREIS|MREPLACE|MREPLACEWITH|MWHEREISFILE),
N_("NextHstory"), IFSCHELP(nano_next_history_msg), TOGETHER, VIEW);
N_("NextHstory"), IFSCHELP(nano_next_history_msg), BLANKAFTER, VIEW);
#endif
#if !defined(DISABLE_COLOR) && defined(DISABLE_JUSTIFY)
add_to_funcs(do_gotolinecolumn_void, MWHEREIS,
gotoline_tag, IFSCHELP(nano_gotoline_msg), BLANKAFTER, VIEW);
#endif
add_to_funcs(gototext_void, MGOTOLINE,
......
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