diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-10-18 17:38:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-18 17:38:29 +0800 |
commit | b5e69b32d7e299b8283f13f4f97081f6cf795f0a (patch) | |
tree | c7f2be5e6caeddc6d2c8aadfc218647e54744f99 /scripts | |
parent | f4b620c4e6430ea8cbc5632d6853b24da09d7dfc (diff) | |
download | rneovim-b5e69b32d7e299b8283f13f4f97081f6cf795f0a.tar.gz rneovim-b5e69b32d7e299b8283f13f4f97081f6cf795f0a.tar.bz2 rneovim-b5e69b32d7e299b8283f13f4f97081f6cf795f0a.zip |
vim-patch: make gen_opt_test.vim work with Nvim (#30850)
Problem: Insufficient test coverage for validation of option values.
Solution: Port Vim's gen_opt_test.vim and make it work with Nvim.
vim-patch:9.1.0760: tests: no error reported, if gen_opt_test.vim fails
vim-patch:9.1.0791: tests: errors in gen_opt_test.vim are not shown
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vim-patch.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index bfa9f6d99c..b0ec225633 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -213,8 +213,8 @@ preprocess_patch() { # Remove "Last change ..." changes in doc files. 2>/dev/null $nvim --cmd 'set dir=/tmp' +'%s/^@@.*\n.*For Vim version.*Last change.*\n.*For Vim version.*Last change.*//' +w +q "$file" - # Remove gui, option, setup, screen dumps, testdir/Make_*.mak files - local na_src_testdir='gen_opt_test\.vim\|gui_.*\|Make_amiga\.mak\|Make_dos\.mak\|Make_ming\.mak\|Make_vms\.mms\|dumps/.*\.dump\|setup_gui\.vim' + # Remove gui, setup, screen dumps, testdir/Make_*.mak files + local na_src_testdir='gui_.*\|Make_amiga\.mak\|Make_dos\.mak\|Make_ming\.mak\|Make_vms\.mms\|dumps/.*\.dump\|setup_gui\.vim' 2>/dev/null $nvim --cmd 'set dir=/tmp' +'g@^diff --git a/src/testdir/\<\%('"${na_src_testdir}"'\)\>@exe "norm! d/\\v(^diff)|%$\r"' +w +q "$file" # Remove testdir/test_*.vim files |