speller: fix build when tiny build is enabled
URL: https://bugs.gentoo.org/604000
This commit is contained in:
committed by
Mike Frysinger
parent
9f92fb3ec4
commit
fc89ac11d2
@@ -3079,9 +3079,11 @@ const char *do_alt_speller(char *tempfile_name)
|
|||||||
stat(tempfile_name, &spellfileinfo);
|
stat(tempfile_name, &spellfileinfo);
|
||||||
if (spellfileinfo.st_mtime != timestamp) {
|
if (spellfileinfo.st_mtime != timestamp) {
|
||||||
set_modified();
|
set_modified();
|
||||||
|
#ifndef NANO_TINY
|
||||||
/* Flush the undo stack, to avoid making a mess when the user
|
/* Flush the undo stack, to avoid making a mess when the user
|
||||||
* tries to undo things in spell-corrected lines. */
|
* tries to undo things in spell-corrected lines. */
|
||||||
discard_until(NULL, openfile);
|
discard_until(NULL, openfile);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
/* Unblock SIGWINCHes again. */
|
/* Unblock SIGWINCHes again. */
|
||||||
|
|||||||
Reference in New Issue
Block a user