summaryrefslogtreecommitdiff
path: root/src/testdir/test_spell_utf8.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/test_spell_utf8.vim')
-rw-r--r--src/testdir/test_spell_utf8.vim16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/testdir/test_spell_utf8.vim b/src/testdir/test_spell_utf8.vim
index 1f561e46a..79dc3e4a4 100644
--- a/src/testdir/test_spell_utf8.vim
+++ b/src/testdir/test_spell_utf8.vim
@@ -765,4 +765,20 @@ func Test_spellfile_value()
set spellfile=Xdir/Xtest.utf-8.add,Xtest_other.add
endfunc
+func Test_no_crash_with_weird_text()
+ new
+ let lines =<< trim END
+ r<sfile>
+ €
+
+
+ €
+ END
+ call setline(1, lines)
+ exe "%norm \<C-v>ez=>\<C-v>wzG"
+
+ bwipe!
+endfunc
+
+
" vim: shiftwidth=2 sts=2 expandtab