aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_spellfile.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-15 20:50:04 +0800
committerGitHub <noreply@github.com>2022-08-15 20:50:04 +0800
commitcbb2e634c9da7cc6e5fe6f18539ab7deb9d67915 (patch)
tree80cc2cd976735e21ae2ca732a111fca146d6735f /src/nvim/testdir/test_spellfile.vim
parentd33424983312806fb683eaa6bd720fe418c1299e (diff)
parent18b457ebbb46010082c8bed2d30dfa4b7c51e2de (diff)
downloadrneovim-cbb2e634c9da7cc6e5fe6f18539ab7deb9d67915.tar.gz
rneovim-cbb2e634c9da7cc6e5fe6f18539ab7deb9d67915.tar.bz2
rneovim-cbb2e634c9da7cc6e5fe6f18539ab7deb9d67915.zip
Merge pull request #19440 from zeertzjq/vim-8.2.1786
vim-patch:8.2.{1786,1799}: Normal mode commands not fully tested
Diffstat (limited to 'src/nvim/testdir/test_spellfile.vim')
-rw-r--r--src/nvim/testdir/test_spellfile.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_spellfile.vim b/src/nvim/testdir/test_spellfile.vim
index b028e9d969..ef475a99e7 100644
--- a/src/nvim/testdir/test_spellfile.vim
+++ b/src/nvim/testdir/test_spellfile.vim
@@ -25,6 +25,18 @@ func Test_spell_normal()
let cnt=readfile('./Xspellfile.add')
call assert_equal('goood', cnt[0])
+ " zg should fail in operator-pending mode
+ call assert_beeps('norm! czg')
+
+ " zg fails in visual mode when not able to get the visual text
+ call assert_beeps('norm! ggVjzg')
+ norm! V
+
+ " zg fails for a non-identifier word
+ call append(line('$'), '###')
+ call assert_fails('norm! Gzg', 'E349:')
+ $d
+
" Test for zw
2
norm! $zw