diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2023-04-01 21:34:55 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-01 21:34:55 +0800 |
| commit | 4f66530af1d5e501f7b57ddd79e9c185af1b5f39 (patch) | |
| tree | 60f674cd4a84454a5027ac7414326b939ea92a72 /test | |
| parent | 75e1b1d5c934aa3a12693a7df58795563fb7877e (diff) | |
| download | rneovim-4f66530af1d5e501f7b57ddd79e9c185af1b5f39.tar.gz rneovim-4f66530af1d5e501f7b57ddd79e9c185af1b5f39.tar.bz2 rneovim-4f66530af1d5e501f7b57ddd79e9c185af1b5f39.zip | |
vim-patch:9.0.1434: crash when adding package already in 'runtimepath' (#22849)
Problem: Crash when adding package already in 'runtimepath'.
Solution: Change order for using 'runtimepath' entries. (closes vim/vim#12215)
https://github.com/vim/vim/commit/39c9ec16ea7ef13c5d783481542ee9aa6c05282c
Diffstat (limited to 'test')
| -rw-r--r-- | test/old/testdir/test_packadd.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/old/testdir/test_packadd.vim b/test/old/testdir/test_packadd.vim index 3121b3b4d1..64c8fd8659 100644 --- a/test/old/testdir/test_packadd.vim +++ b/test/old/testdir/test_packadd.vim @@ -20,6 +20,13 @@ func Test_packadd() call mkdir(s:plugdir . '/plugin/also', 'p') call mkdir(s:plugdir . '/ftdetect', 'p') call mkdir(s:plugdir . '/after', 'p') + + " This used to crash Vim + let &rtp = 'nosuchdir,' . s:plugdir . '/after' + packadd mytest + " plugdir should be inserted before plugdir/after + call assert_match('^nosuchdir,' . s:plugdir . ',', &rtp) + set rtp& let rtp = &rtp filetype on |