aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_edit.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-09-22 13:44:42 +0800
committerGitHub <noreply@github.com>2022-09-22 13:44:42 +0800
commit8d13b08a03c31cdb269b7d09c166e0b447f2a303 (patch)
tree46333bb7b3c8b9689f2f537bfd6bb08cb8bca9cf /src/nvim/testdir/test_edit.vim
parentd76017c613647326b4195580422196a7d0fd548d (diff)
parent477cf2a6b1226e77aa0562067d90a5a07dfbdccc (diff)
downloadrneovim-8d13b08a03c31cdb269b7d09c166e0b447f2a303.tar.gz
rneovim-8d13b08a03c31cdb269b7d09c166e0b447f2a303.tar.bz2
rneovim-8d13b08a03c31cdb269b7d09c166e0b447f2a303.zip
Merge pull request #20278 from zeertzjq/vim-8.2.3428
vim-patch:8.2.{3428,3567,3568,4074,4677}
Diffstat (limited to 'src/nvim/testdir/test_edit.vim')
-rw-r--r--src/nvim/testdir/test_edit.vim48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_edit.vim b/src/nvim/testdir/test_edit.vim
index 51eb89f71d..9783ed19a7 100644
--- a/src/nvim/testdir/test_edit.vim
+++ b/src/nvim/testdir/test_edit.vim
@@ -1951,4 +1951,52 @@ func Test_edit_revins()
bw!
endfunc
+" Test for getting the character of the line below after "p"
+func Test_edit_put_CTRL_E()
+ " set encoding=latin1
+ new
+ let @" = ''
+ sil! norm orggRx
+ sil! norm pr
+ call assert_equal(['r', 'r'], getline(1, 2))
+ bwipe!
+ set encoding=utf-8
+endfunc
+
+" Test toggling of input method. See :help i_CTRL-^
+func Test_edit_CTRL_hat()
+ CheckFeature xim
+
+ " FIXME: test fails with Motif GUI.
+ " test also fails when running in the GUI.
+ CheckFeature gui_gtk
+ CheckNotGui
+
+ new
+
+ call assert_equal(0, &iminsert)
+ call feedkeys("i\<C-^>", 'xt')
+ call assert_equal(2, &iminsert)
+ call feedkeys("i\<C-^>", 'xt')
+ call assert_equal(0, &iminsert)
+
+ bwipe!
+endfunc
+
+" Weird long file name was going over the end of NameBuff
+func Test_edit_overlong_file_name()
+ CheckUnix
+
+ file 0000000000000000000000000000
+ file %%%%%%%%%%%%%%%%%%%%%%%%%%
+ file %%%%%%
+ set readonly
+ set ls=2
+
+ redraw!
+ set noreadonly ls&
+ bwipe!
+endfunc
+
+
" vim: shiftwidth=2 sts=2 expandtab