summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Janda <felix.janda@posteo.de>2016-12-29 13:43:06 -0500
committerMike Frysinger <vapier@gentoo.org>2016-12-29 13:43:06 -0500
commitfc89ac11d25a5d052a63c01006c1fd767d9f5879 (patch)
treefd4e8f01521429dedb43b2a53fbf77cdd5367382
parent9f92fb3ec4914d2ca2b1f00f2ee72885a66b811a (diff)
downloadnano-fc89ac11d25a5d052a63c01006c1fd767d9f5879.tar.gz
speller: fix build when tiny build is enabled
URL: https://bugs.gentoo.org/604000
-rw-r--r--src/text.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/text.c b/src/text.c
index bd17376..a8b34f2 100644
--- a/src/text.c
+++ b/src/text.c
@@ -3079,9 +3079,11 @@ const char *do_alt_speller(char *tempfile_name)
stat(tempfile_name, &spellfileinfo);
if (spellfileinfo.st_mtime != timestamp) {
set_modified();
+#ifndef NANO_TINY
/* Flush the undo stack, to avoid making a mess when the user
* tries to undo things in spell-corrected lines. */
discard_until(NULL, openfile);
+#endif
}
#ifndef NANO_TINY
/* Unblock SIGWINCHes again. */