bindings: do not show the Full-Justify keystroke when in View mode
The file may not be modified when in View mode, so it makes no sense to prominently show the M-J keystroke in the Search menu when in that mode, especially since the keystroke does not really belong there. This addresses https://savannah.gnu.org/bugs/?57574.master
parent
2eaba21a4c
commit
5a98a51173
|
@ -1255,6 +1255,7 @@ void shortcut_init(void)
|
||||||
add_to_sclist(MMAIN, "M-D", 0, do_wordlinechar_count, 0);
|
add_to_sclist(MMAIN, "M-D", 0, do_wordlinechar_count, 0);
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENABLE_JUSTIFY
|
#ifdef ENABLE_JUSTIFY
|
||||||
|
if (!ISSET(VIEW_MODE))
|
||||||
add_to_sclist(MMAIN|MWHEREIS, "M-J", 0, do_full_justify, 0);
|
add_to_sclist(MMAIN|MWHEREIS, "M-J", 0, do_full_justify, 0);
|
||||||
#endif
|
#endif
|
||||||
if (!ISSET(PRESERVE))
|
if (!ISSET(PRESERVE))
|
||||||
|
|
Loading…
Reference in New Issue