tweaks: adjust indentation after the previous change
Also improve a couple of comments.master
parent
61b4eeda66
commit
94b4f07281
|
@ -2872,12 +2872,13 @@ const char *do_alt_speller(char *tempfile_name)
|
||||||
if (!WIFEXITED(alt_spell_status) || WEXITSTATUS(alt_spell_status) != 0)
|
if (!WIFEXITED(alt_spell_status) || WEXITSTATUS(alt_spell_status) != 0)
|
||||||
return invocation_error(alt_speller);
|
return invocation_error(alt_speller);
|
||||||
|
|
||||||
/* Stat the temporary file again, and only read it in when it changed. */
|
/* Stat the temporary file again. */
|
||||||
stat(tempfile_name, &spellfileinfo);
|
stat(tempfile_name, &spellfileinfo);
|
||||||
|
|
||||||
|
/* Use the spell-checked file only when it changed. */
|
||||||
if (spellfileinfo.st_mtime != timestamp) {
|
if (spellfileinfo.st_mtime != timestamp) {
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
/* Replace the marked text (or the entire text) of the current buffer
|
/* Replace the marked text (or entire text) with the corrected text. */
|
||||||
* with the spell-checked text. */
|
|
||||||
if (openfile->mark) {
|
if (openfile->mark) {
|
||||||
filestruct *top, *bot;
|
filestruct *top, *bot;
|
||||||
size_t top_x, bot_x;
|
size_t top_x, bot_x;
|
||||||
|
|
Loading…
Reference in New Issue