diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-21 20:32:43 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-21 20:32:43 +0100 |
commit | 60f63100b9bc1d24b7b80c81f43cf2fc3da95987 (patch) | |
tree | 6401024697d26e2af4ca7af7132de0c44f7dee4b /src/testdir/test_vim9_cmd.vim | |
parent | f4e2099e39ed4d71aed0f9a9579455aed5ec6cc2 (diff) |
patch 8.2.2183: Vim9: value of 'edcompatible' and 'gdefault' are usedv8.2.2183
Problem: Vim9: value of 'edcompatible' and 'gdefault' are used.
Solution: Ignore these deprecated options in Vim9 script. (closes #7508)
Diffstat (limited to 'src/testdir/test_vim9_cmd.vim')
-rw-r--r-- | src/testdir/test_vim9_cmd.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim index 3b8a7a45e3..f05872ef23 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -740,4 +740,17 @@ def Test_magic_not_used() bwipe! enddef +def Test_gdefault_not_used() + new + for cmd in ['set gdefault', 'set nogdefault'] + exe cmd + setline(1, 'aaa') + s/./b/ + assert_equal('baa', getline(1)) + endfor + + set nogdefault + bwipe! +enddef + " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker |