Mercurial > vim
comparison src/testdir/test_vim9_cmd.vim @ 23274:10bbff53d3d1 v8.2.2183
patch 8.2.2183: Vim9: value of 'edcompatible' and 'gdefault' are used
Commit: https://github.com/vim/vim/commit/60f63100b9bc1d24b7b80c81f43cf2fc3da95987
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 21 20:32:43 2020 +0100
patch 8.2.2183: Vim9: value of 'edcompatible' and 'gdefault' are used
Problem: Vim9: value of 'edcompatible' and 'gdefault' are used.
Solution: Ignore these deprecated options in Vim9 script. (closes https://github.com/vim/vim/issues/7508)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 21 Dec 2020 20:45:05 +0100 |
parents | a84e7abb0c92 |
children | 1f37fd20f851 |
comparison
equal
deleted
inserted
replaced
23273:84eb22e3018c | 23274:10bbff53d3d1 |
---|---|
738 assert_equal('aaa', getline(1)) | 738 assert_equal('aaa', getline(1)) |
739 | 739 |
740 bwipe! | 740 bwipe! |
741 enddef | 741 enddef |
742 | 742 |
743 def Test_gdefault_not_used() | |
744 new | |
745 for cmd in ['set gdefault', 'set nogdefault'] | |
746 exe cmd | |
747 setline(1, 'aaa') | |
748 s/./b/ | |
749 assert_equal('baa', getline(1)) | |
750 endfor | |
751 | |
752 set nogdefault | |
753 bwipe! | |
754 enddef | |
755 | |
743 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker | 756 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker |