mirror of git://git.sv.gnu.org/nano.git
tweaks: normalize some whitespace
This commit is contained in:
parent
aaab6e57e0
commit
17cf833b9c
|
@ -311,16 +311,14 @@ char *do_browser(char *path)
|
|||
#endif
|
||||
|
||||
if (stat(filelist[selected], &st) == -1) {
|
||||
/* We can't open this file for some reason.
|
||||
* Complain. */
|
||||
/* We can't open this file for some reason. Complain. */
|
||||
statusline(ALERT, _("Error reading %s: %s"),
|
||||
filelist[selected], strerror(errno));
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!S_ISDIR(st.st_mode)) {
|
||||
/* We've successfully opened a file, we're done, so
|
||||
* get out. */
|
||||
/* We've successfully opened a file, so we're done. */
|
||||
retval = mallocstrcpy(NULL, filelist[selected]);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -2987,13 +2987,15 @@ int check_dotnano(void)
|
|||
if (stat(nanodir, &dirstat) == -1) {
|
||||
if (mkdir(nanodir, S_IRWXU | S_IRWXG | S_IRWXO) == -1) {
|
||||
history_error(N_("Unable to create directory %s: %s\n"
|
||||
"It is required for saving/loading search history or cursor positions.\n"),
|
||||
"It is required for saving/loading "
|
||||
"search history or cursor positions.\n"),
|
||||
nanodir, strerror(errno));
|
||||
ret = 0;
|
||||
}
|
||||
} else if (!S_ISDIR(dirstat.st_mode)) {
|
||||
history_error(N_("Path %s is not a directory and needs to be.\n"
|
||||
"Nano will be unable to load or save search history or cursor positions.\n"),
|
||||
"Nano will be unable to load or save "
|
||||
"search history or cursor positions.\n"),
|
||||
nanodir);
|
||||
ret = 0;
|
||||
}
|
||||
|
|
|
@ -1111,9 +1111,8 @@ void do_exit(void)
|
|||
if (ISSET(TEMP_FILE))
|
||||
no_current_file_name_warning();
|
||||
|
||||
i = do_yesno_prompt(FALSE,
|
||||
_("Save modified buffer? (Answering \"No\" will"
|
||||
" DISCARD changes.) "));
|
||||
i = do_yesno_prompt(FALSE, _("Save modified buffer? "
|
||||
"(Answering \"No\" will DISCARD changes.) "));
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
|
|
|
@ -3049,15 +3049,14 @@ const char *do_alt_speller(char *tempfile_name)
|
|||
}
|
||||
#endif
|
||||
|
||||
/* Replace the text of the current buffer with the spell-checked
|
||||
* text. */
|
||||
/* Replace the text of the current buffer with the spell-checked text. */
|
||||
replace_buffer(tempfile_name);
|
||||
|
||||
#ifndef NANO_TINY
|
||||
if (old_mark_set) {
|
||||
filestruct *top_save = openfile->fileage;
|
||||
/* Adjust the end point of the marked region for any change in
|
||||
length of the region's last line. */
|
||||
* length of the region's last line. */
|
||||
if (right_side_up)
|
||||
current_x_save = strlen(openfile->filebot->data);
|
||||
else
|
||||
|
|
|
@ -3059,8 +3059,8 @@ void total_refresh(void)
|
|||
void display_main_list(void)
|
||||
{
|
||||
#ifndef DISABLE_COLOR
|
||||
if (openfile->syntax
|
||||
&& (openfile->syntax->formatter || openfile->syntax->linter))
|
||||
if (openfile->syntax &&
|
||||
(openfile->syntax->formatter || openfile->syntax->linter))
|
||||
set_lint_or_format_shortcuts();
|
||||
else
|
||||
set_spell_shortcuts();
|
||||
|
|
Loading…
Reference in New Issue