diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-07-17 10:31:23 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-07-17 11:04:50 +0800 |
commit | dce615bc425795ad65f96ed1879ba37ff6a030d8 (patch) | |
tree | c2a0ade8e27d2114a83a6bdc89e615a584fd8c8e /test | |
parent | 8f890f74b692406485f1bbdf22ec608421f58886 (diff) | |
download | rneovim-dce615bc425795ad65f96ed1879ba37ff6a030d8.tar.gz rneovim-dce615bc425795ad65f96ed1879ba37ff6a030d8.tar.bz2 rneovim-dce615bc425795ad65f96ed1879ba37ff6a030d8.zip |
vim-patch:9.0.0228: crash when pattern looks below the last line
Problem: Crash when pattern looks below the last line.
Solution: Consider invalid lines to be empty. (closes vim/vim#10938)
https://github.com/vim/vim/commit/13ed494bb5edc5a02d0ed0feabddb68920f88570
Comment out the test as it uses Vim9 script and text properties.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_regexp_latin.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/old/testdir/test_regexp_latin.vim b/test/old/testdir/test_regexp_latin.vim index c8eb7ef000..de73ae633f 100644 --- a/test/old/testdir/test_regexp_latin.vim +++ b/test/old/testdir/test_regexp_latin.vim @@ -1135,4 +1135,16 @@ func Test_recursive_substitute_expr() delfunc Repl endfunc +" def Test_compare_columns() +" # this was using a line below the last line +" enew +" setline(1, ['', '']) +" prop_type_add('name', {highlight: 'ErrorMsg'}) +" prop_add(1, 1, {length: 1, type: 'name'}) +" search('\%#=1\%>.l\n.*\%<2v', 'nW') +" search('\%#=2\%>.l\n.*\%<2v', 'nW') +" bwipe! +" prop_type_delete('name') +" enddef + " vim: shiftwidth=2 sts=2 expandtab |