tweaks: normalize some whitespace

This commit is contained in:
Benno Schulenberg 2016-05-30 09:09:36 +02:00
parent aaab6e57e0
commit 17cf833b9c
9 changed files with 39 additions and 41 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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

View File

@ -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

View File

@ -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();