diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-14 18:15:31 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-14 18:15:31 +0800 |
| commit | c6f0be116ec7481f16341552940764a1f3c6d1c7 (patch) | |
| tree | 22837cb423804c7d9ac5c3cd80aa2932540865c2 /src/nvim/testdir/test_digraph.vim | |
| parent | b81d1eb26502f403574113385a75444f8880828e (diff) | |
| parent | 314f1a7c2168ee7e99e2d2b348146df092341a64 (diff) | |
| download | rneovim-c6f0be116ec7481f16341552940764a1f3c6d1c7.tar.gz rneovim-c6f0be116ec7481f16341552940764a1f3c6d1c7.tar.bz2 rneovim-c6f0be116ec7481f16341552940764a1f3c6d1c7.zip | |
Merge pull request #19353 from zeertzjq/vim-8.2.0369
vim-patch:8.2.{0342,0347,0369}: insufficient test coverage
Diffstat (limited to 'src/nvim/testdir/test_digraph.vim')
| -rw-r--r-- | src/nvim/testdir/test_digraph.vim | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nvim/testdir/test_digraph.vim b/src/nvim/testdir/test_digraph.vim index 7b6bc940d3..acc34e5e7c 100644 --- a/src/nvim/testdir/test_digraph.vim +++ b/src/nvim/testdir/test_digraph.vim @@ -466,10 +466,12 @@ endfunc func Test_digraph_cmndline() " Create digraph on commandline - " This is a hack, to let Vim create the digraph in commandline mode - let s = '' - exe "sil! norm! :let s.='\<c-k>Eu'\<cr>" - call assert_equal("€", s) + call feedkeys(":\"\<c-k>Eu\<cr>", 'xt') + call assert_equal('"€', @:) + + " Canceling a CTRL-K on the cmdline + call feedkeys(":\"a\<c-k>\<esc>b\<cr>", 'xt') + call assert_equal('"ab', @:) endfunc func Test_show_digraph() |