Commit 7ad5afb9 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: remove some unneeded parentheses, and shorten two function calls

parent e1b0f2b2
No related merge requests found
Showing with 6 additions and 8 deletions
+6 -8
...@@ -993,11 +993,9 @@ void shortcut_init(void) ...@@ -993,11 +993,9 @@ void shortcut_init(void)
#endif #endif
#ifdef ENABLE_HISTORIES #ifdef ENABLE_HISTORIES
add_to_funcs(get_history_older_void, add_to_funcs(get_history_older_void, MWHEREIS|MREPLACE|MREPLACEWITH|MWHEREISFILE,
(MWHEREIS|MREPLACE|MREPLACEWITH|MWHEREISFILE),
N_("PrevHstory"), WITHORSANS(prevhistory_gist), TOGETHER, VIEW); N_("PrevHstory"), WITHORSANS(prevhistory_gist), TOGETHER, VIEW);
add_to_funcs(get_history_newer_void, add_to_funcs(get_history_newer_void, MWHEREIS|MREPLACE|MREPLACEWITH|MWHEREISFILE,
(MWHEREIS|MREPLACE|MREPLACEWITH|MWHEREISFILE),
N_("NextHstory"), WITHORSANS(nexthistory_gist), BLANKAFTER, VIEW); N_("NextHstory"), WITHORSANS(nexthistory_gist), BLANKAFTER, VIEW);
#endif #endif
...@@ -1055,9 +1053,9 @@ void shortcut_init(void) ...@@ -1055,9 +1053,9 @@ void shortcut_init(void)
add_to_funcs(do_page_down, MBROWSER, add_to_funcs(do_page_down, MBROWSER,
nextpage_tag, WITHORSANS(nextpage_gist), TOGETHER, VIEW); nextpage_tag, WITHORSANS(nextpage_gist), TOGETHER, VIEW);
add_to_funcs(do_first_file, (MBROWSER|MWHEREISFILE), add_to_funcs(do_first_file, MBROWSER|MWHEREISFILE,
N_("First File"), WITHORSANS(firstfile_gist), TOGETHER, VIEW); N_("First File"), WITHORSANS(firstfile_gist), TOGETHER, VIEW);
add_to_funcs(do_last_file, (MBROWSER|MWHEREISFILE), add_to_funcs(do_last_file, MBROWSER|MWHEREISFILE,
N_("Last File"), WITHORSANS(lastfile_gist), BLANKAFTER, VIEW); N_("Last File"), WITHORSANS(lastfile_gist), BLANKAFTER, VIEW);
#ifndef NANO_TINY #ifndef NANO_TINY
add_to_funcs(do_prev_word_void, MBROWSER, add_to_funcs(do_prev_word_void, MBROWSER,
......
...@@ -96,13 +96,13 @@ void run_macro(void) ...@@ -96,13 +96,13 @@ void run_macro(void)
size_t i; size_t i;
if (recording) { if (recording) {
statusline(HUSH, _("Cannot run macro while recording")); statusbar(_("Cannot run macro while recording"));
snip_last_keystroke(); snip_last_keystroke();
return; return;
} }
if (macro_length == 0) { if (macro_length == 0) {
statusline(HUSH, _("Macro is empty")); statusbar(_("Macro is empty"));
return; return;
} }
......
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