Normalizing whitespace after the preceding changes.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5330 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
2ee18d635f
commit
104ea6b0c3
|
@ -1,6 +1,7 @@
|
||||||
2015-07-30 Benno Schulenberg <bensberg@justemail.net>
|
2015-07-30 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/global.c (shortcut_init): Don't show ^R and ^T in the help lines
|
* src/global.c (shortcut_init): Don't show ^R and ^T in the help lines
|
||||||
in restricted mode (if possible), to give visual feedback.
|
in restricted mode (if possible), to give visual feedback.
|
||||||
|
* src/*.c: Normalize the whitespace after the preceding changes.
|
||||||
|
|
||||||
2015-07-29 Benno Schulenberg <bensberg@justemail.net>
|
2015-07-29 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/text.c (do_linter): When the linter is called in restricted mode
|
* src/text.c (do_linter): When the linter is called in restricted mode
|
||||||
|
|
33
src/global.c
33
src/global.c
|
@ -692,19 +692,19 @@ void shortcut_init(void)
|
||||||
* keep the help items nicely paired also in restricted mode. */
|
* keep the help items nicely paired also in restricted mode. */
|
||||||
if (TRUE) {
|
if (TRUE) {
|
||||||
#endif
|
#endif
|
||||||
add_to_funcs(do_insertfile_void, MMAIN,
|
add_to_funcs(do_insertfile_void, MMAIN,
|
||||||
read_file_tag, IFSCHELP(nano_insert_msg), BLANKAFTER,
|
read_file_tag, IFSCHELP(nano_insert_msg), BLANKAFTER,
|
||||||
/* We allow inserting files in view mode if multibuffer mode
|
/* We allow inserting files in view mode if multibuffer mode
|
||||||
* is switched on, so that we can view multiple files. */
|
* is switched on, so that we can view multiple files. */
|
||||||
#ifndef DISABLE_MULTIBUFFER
|
#ifndef DISABLE_MULTIBUFFER
|
||||||
VIEW);
|
VIEW);
|
||||||
#else
|
#else
|
||||||
NOVIEW);
|
NOVIEW);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
#ifndef DISABLE_JUSTIFY
|
#ifndef DISABLE_JUSTIFY
|
||||||
add_to_funcs(do_justify_void, MMAIN,
|
add_to_funcs(do_justify_void, MMAIN,
|
||||||
N_("Justify"), IFSCHELP(nano_justify_msg), BLANKAFTER, NOVIEW);
|
N_("Justify"), IFSCHELP(nano_justify_msg), BLANKAFTER, NOVIEW);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -741,26 +741,25 @@ void shortcut_init(void)
|
||||||
/* Remember the entry for Uncut, to be able to replace it with Unjustify. */
|
/* Remember the entry for Uncut, to be able to replace it with Unjustify. */
|
||||||
uncutfunc = tailfunc;
|
uncutfunc = tailfunc;
|
||||||
|
|
||||||
if (!ISSET(RESTRICTED)) {
|
if (!ISSET(RESTRICTED)) {
|
||||||
#ifndef DISABLE_JUSTIFY
|
#ifndef DISABLE_JUSTIFY
|
||||||
add_to_funcs(do_justify_void, MMAIN,
|
add_to_funcs(do_justify_void, MMAIN,
|
||||||
N_("Justify"), IFSCHELP(nano_justify_msg), TOGETHER, NOVIEW);
|
N_("Justify"), IFSCHELP(nano_justify_msg), TOGETHER, NOVIEW);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef DISABLE_SPELLER
|
#ifndef DISABLE_SPELLER
|
||||||
add_to_funcs(do_spell, MMAIN,
|
add_to_funcs(do_spell, MMAIN,
|
||||||
N_("To Spell"), IFSCHELP(nano_spell_msg), TOGETHER, NOVIEW);
|
N_("To Spell"), IFSCHELP(nano_spell_msg), TOGETHER, NOVIEW);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef DISABLE_COLOR
|
#ifndef DISABLE_COLOR
|
||||||
add_to_funcs(do_linter, MMAIN,
|
add_to_funcs(do_linter, MMAIN,
|
||||||
N_("To Linter"), IFSCHELP(nano_lint_msg), TOGETHER, NOVIEW);
|
N_("To Linter"), IFSCHELP(nano_lint_msg), TOGETHER, NOVIEW);
|
||||||
#ifndef DISABLE_SPELLER
|
#ifndef DISABLE_SPELLER
|
||||||
add_to_funcs(do_formatter, MMAIN,
|
add_to_funcs(do_formatter, MMAIN,
|
||||||
N_("Formatter"), IFSCHELP(nano_formatter_msg), BLANKAFTER, NOVIEW);
|
N_("Formatter"), IFSCHELP(nano_formatter_msg), BLANKAFTER, NOVIEW);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
add_to_funcs(case_sens_void, MWHEREIS|MREPLACE,
|
add_to_funcs(case_sens_void, MWHEREIS|MREPLACE,
|
||||||
|
|
35
src/nano.c
35
src/nano.c
|
@ -843,9 +843,9 @@ void usage(void)
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
print_opt("-A", "--smarthome", N_("Enable smart home key"));
|
print_opt("-A", "--smarthome", N_("Enable smart home key"));
|
||||||
if (!ISSET(RESTRICTED)) {
|
if (!ISSET(RESTRICTED)) {
|
||||||
print_opt("-B", "--backup", N_("Save backups of existing files"));
|
print_opt("-B", "--backup", N_("Save backups of existing files"));
|
||||||
print_opt(_("-C <dir>"), _("--backupdir=<dir>"),
|
print_opt(_("-C <dir>"), _("--backupdir=<dir>"),
|
||||||
N_("Directory for saving unique backup files"));
|
N_("Directory for saving unique backup files"));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
print_opt("-D", "--boldtext", N_("Use bold instead of reverse video text"));
|
print_opt("-D", "--boldtext", N_("Use bold instead of reverse video text"));
|
||||||
|
@ -854,20 +854,20 @@ void usage(void)
|
||||||
#endif
|
#endif
|
||||||
#ifndef DISABLE_MULTIBUFFER
|
#ifndef DISABLE_MULTIBUFFER
|
||||||
if (!ISSET(RESTRICTED))
|
if (!ISSET(RESTRICTED))
|
||||||
print_opt("-F", "--multibuffer",
|
print_opt("-F", "--multibuffer",
|
||||||
N_("Read a file into a new buffer by default"));
|
N_("Read a file into a new buffer by default"));
|
||||||
#endif
|
#endif
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
print_opt("-G", "--locking", N_("Use (vim-style) lock files"));
|
print_opt("-G", "--locking", N_("Use (vim-style) lock files"));
|
||||||
#endif
|
#endif
|
||||||
#ifndef DISABLE_HISTORIES
|
#ifndef DISABLE_HISTORIES
|
||||||
if (!ISSET(RESTRICTED))
|
if (!ISSET(RESTRICTED))
|
||||||
print_opt("-H", "--historylog",
|
print_opt("-H", "--historylog",
|
||||||
N_("Log & read search/replace string history"));
|
N_("Log & read search/replace string history"));
|
||||||
#endif
|
#endif
|
||||||
#ifndef DISABLE_NANORC
|
#ifndef DISABLE_NANORC
|
||||||
if (!ISSET(RESTRICTED))
|
if (!ISSET(RESTRICTED))
|
||||||
print_opt("-I", "--ignorercfiles", N_("Don't look at nanorc files"));
|
print_opt("-I", "--ignorercfiles", N_("Don't look at nanorc files"));
|
||||||
#endif
|
#endif
|
||||||
print_opt("-K", "--rebindkeypad",
|
print_opt("-K", "--rebindkeypad",
|
||||||
N_("Fix numeric keypad key confusion problem"));
|
N_("Fix numeric keypad key confusion problem"));
|
||||||
|
@ -880,13 +880,14 @@ void usage(void)
|
||||||
print_opt("-O", "--morespace", N_("Use one more line for editing"));
|
print_opt("-O", "--morespace", N_("Use one more line for editing"));
|
||||||
#ifndef DISABLE_HISTORIES
|
#ifndef DISABLE_HISTORIES
|
||||||
if (!ISSET(RESTRICTED))
|
if (!ISSET(RESTRICTED))
|
||||||
print_opt("-P", "--positionlog", N_("Log & read location of cursor position"));
|
print_opt("-P", "--positionlog",
|
||||||
|
N_("Log & read location of cursor position"));
|
||||||
#endif
|
#endif
|
||||||
#ifndef DISABLE_JUSTIFY
|
#ifndef DISABLE_JUSTIFY
|
||||||
print_opt(_("-Q <str>"), _("--quotestr=<str>"), N_("Quoting string"));
|
print_opt(_("-Q <str>"), _("--quotestr=<str>"), N_("Quoting string"));
|
||||||
#endif
|
#endif
|
||||||
if (!ISSET(RESTRICTED))
|
if (!ISSET(RESTRICTED))
|
||||||
print_opt("-R", "--restricted", N_("Restricted mode"));
|
print_opt("-R", "--restricted", N_("Restricted mode"));
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
print_opt("-S", "--smooth", N_("Scroll by line instead of half-screen"));
|
print_opt("-S", "--smooth", N_("Scroll by line instead of half-screen"));
|
||||||
#endif
|
#endif
|
||||||
|
@ -902,8 +903,8 @@ void usage(void)
|
||||||
#endif
|
#endif
|
||||||
#ifndef DISABLE_COLOR
|
#ifndef DISABLE_COLOR
|
||||||
if (!ISSET(RESTRICTED))
|
if (!ISSET(RESTRICTED))
|
||||||
print_opt(_("-Y <str>"), _("--syntax=<str>"),
|
print_opt(_("-Y <str>"), _("--syntax=<str>"),
|
||||||
N_("Syntax definition to use for coloring"));
|
N_("Syntax definition to use for coloring"));
|
||||||
#endif
|
#endif
|
||||||
print_opt("-c", "--constantshow", N_("Constantly show cursor position"));
|
print_opt("-c", "--constantshow", N_("Constantly show cursor position"));
|
||||||
print_opt("-d", "--rebinddelete",
|
print_opt("-d", "--rebinddelete",
|
||||||
|
@ -925,8 +926,8 @@ void usage(void)
|
||||||
print_opt("-p", "--preserve", N_("Preserve XON (^Q) and XOFF (^S) keys"));
|
print_opt("-p", "--preserve", N_("Preserve XON (^Q) and XOFF (^S) keys"));
|
||||||
#ifndef DISABLE_NANORC
|
#ifndef DISABLE_NANORC
|
||||||
if (!ISSET(RESTRICTED))
|
if (!ISSET(RESTRICTED))
|
||||||
print_opt("-q", "--quiet",
|
print_opt("-q", "--quiet",
|
||||||
N_("Silently ignore startup issues like rc file errors"));
|
N_("Silently ignore startup issues like rc file errors"));
|
||||||
#endif
|
#endif
|
||||||
#ifndef DISABLE_WRAPJUSTIFY
|
#ifndef DISABLE_WRAPJUSTIFY
|
||||||
print_opt(_("-r <#cols>"), _("--fill=<#cols>"),
|
print_opt(_("-r <#cols>"), _("--fill=<#cols>"),
|
||||||
|
@ -934,8 +935,8 @@ void usage(void)
|
||||||
#endif
|
#endif
|
||||||
#ifndef DISABLE_SPELLER
|
#ifndef DISABLE_SPELLER
|
||||||
if (!ISSET(RESTRICTED))
|
if (!ISSET(RESTRICTED))
|
||||||
print_opt(_("-s <prog>"), _("--speller=<prog>"),
|
print_opt(_("-s <prog>"), _("--speller=<prog>"),
|
||||||
N_("Enable alternate speller"));
|
N_("Enable alternate speller"));
|
||||||
#endif
|
#endif
|
||||||
print_opt("-t", "--tempfile", N_("Auto save on exit, don't prompt"));
|
print_opt("-t", "--tempfile", N_("Auto save on exit, don't prompt"));
|
||||||
print_opt("-v", "--view", N_("View mode (read-only)"));
|
print_opt("-v", "--view", N_("View mode (read-only)"));
|
||||||
|
@ -944,7 +945,7 @@ void usage(void)
|
||||||
#endif
|
#endif
|
||||||
print_opt("-x", "--nohelp", N_("Don't show the two help lines"));
|
print_opt("-x", "--nohelp", N_("Don't show the two help lines"));
|
||||||
if (!ISSET(RESTRICTED))
|
if (!ISSET(RESTRICTED))
|
||||||
print_opt("-z", "--suspend", N_("Enable suspension"));
|
print_opt("-z", "--suspend", N_("Enable suspension"));
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
print_opt("-$", "--softwrap", N_("Enable soft line wrapping"));
|
print_opt("-$", "--softwrap", N_("Enable soft line wrapping"));
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue