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)

13ed494bb5

Comment out the test as it uses Vim9 script and text properties.

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq
2024-07-17 10:31:23 +08:00
parent 8f890f74b6
commit dce615bc42
2 changed files with 31 additions and 8 deletions

View File

@@ -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