From cf07f2baabd3a1a072102e0cacb6d70509ada044 Mon Sep 17 00:00:00 2001 From: bfredl Date: Mon, 27 Feb 2023 12:29:20 +0100 Subject: feat(edit)!: remove old c implementation of hebrew keymap This feature has long been obsolete. The 'keymap' option can be used to support language keymaps, including hebrew and hebrewp (phonetic mapping). There is no need to keep the old c code with hardcoded keymaps for some languages. --- src/nvim/testdir/test_paste.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/nvim/testdir/test_paste.vim') diff --git a/src/nvim/testdir/test_paste.vim b/src/nvim/testdir/test_paste.vim index dad3c2c6a0..923f4f42a6 100644 --- a/src/nvim/testdir/test_paste.vim +++ b/src/nvim/testdir/test_paste.vim @@ -20,7 +20,8 @@ endfunc func Test_paste_opt_restore() set autoindent expandtab ruler showmatch if has('rightleft') - set revins hkmap + " set hkmap + set revins endif set smarttab softtabstop=3 textwidth=27 wrapmargin=12 if has('vartabs') @@ -33,7 +34,7 @@ func Test_paste_opt_restore() call assert_false(&expandtab) if has('rightleft') call assert_false(&revins) - call assert_false(&hkmap) + " call assert_false(&hkmap) endif call assert_false(&ruler) call assert_false(&showmatch) @@ -51,7 +52,7 @@ func Test_paste_opt_restore() call assert_true(&expandtab) if has('rightleft') call assert_true(&revins) - call assert_true(&hkmap) + " call assert_true(&hkmap) endif call assert_true(&ruler) call assert_true(&showmatch) -- cgit From af23d173883f47fd02a9a380c719e4428370b484 Mon Sep 17 00:00:00 2001 From: dundargoc <33953936+dundargoc@users.noreply.github.com> Date: Tue, 7 Mar 2023 04:13:04 +0100 Subject: test: move oldtests to test directory (#22536) The new oldtest directory is in test/old/testdir. The reason for this is that many tests have hardcoded the parent directory name to be 'testdir'. --- src/nvim/testdir/test_paste.vim | 77 ----------------------------------------- 1 file changed, 77 deletions(-) delete mode 100644 src/nvim/testdir/test_paste.vim (limited to 'src/nvim/testdir/test_paste.vim') diff --git a/src/nvim/testdir/test_paste.vim b/src/nvim/testdir/test_paste.vim deleted file mode 100644 index 923f4f42a6..0000000000 --- a/src/nvim/testdir/test_paste.vim +++ /dev/null @@ -1,77 +0,0 @@ - -" Test for 'pastetoggle' -func Test_pastetoggle() - new - set pastetoggle= - set nopaste - call feedkeys("iHello\", 'xt') - call assert_true(&paste) - call feedkeys("i\", 'xt') - call assert_false(&paste) - call assert_equal('Hello', getline(1)) - " command-line completion for 'pastetoggle' value - call feedkeys(":set pastetoggle=\\\"\", 'xt') - call assert_equal('"set pastetoggle=', @:) - set pastetoggle& - bwipe! -endfunc - -" Test for restoring option values when 'paste' is disabled -func Test_paste_opt_restore() - set autoindent expandtab ruler showmatch - if has('rightleft') - " set hkmap - set revins - endif - set smarttab softtabstop=3 textwidth=27 wrapmargin=12 - if has('vartabs') - set varsofttabstop=10,20 - endif - - " enabling 'paste' should reset the above options - set paste - call assert_false(&autoindent) - call assert_false(&expandtab) - if has('rightleft') - call assert_false(&revins) - " call assert_false(&hkmap) - endif - call assert_false(&ruler) - call assert_false(&showmatch) - call assert_false(&smarttab) - call assert_equal(0, &softtabstop) - call assert_equal(0, &textwidth) - call assert_equal(0, &wrapmargin) - if has('vartabs') - call assert_equal('', &varsofttabstop) - endif - - " disabling 'paste' should restore the option values - set nopaste - call assert_true(&autoindent) - call assert_true(&expandtab) - if has('rightleft') - call assert_true(&revins) - " call assert_true(&hkmap) - endif - call assert_true(&ruler) - call assert_true(&showmatch) - call assert_true(&smarttab) - call assert_equal(3, &softtabstop) - call assert_equal(27, &textwidth) - call assert_equal(12, &wrapmargin) - if has('vartabs') - call assert_equal('10,20', &varsofttabstop) - endif - - set autoindent& expandtab& ruler& showmatch& - if has('rightleft') - set revins& hkmap& - endif - set smarttab& softtabstop& textwidth& wrapmargin& - if has('vartabs') - set varsofttabstop& - endif -endfunc - -" vim: shiftwidth=2 sts=2 expandtab -- cgit