mirror of
https://github.com/neovim/neovim.git
synced 2026-05-19 11:31:12 +00:00
vim-patch:8.2.4938: crash when matching buffer with invalid pattern
Problem: Crash when matching buffer with invalid pattern.
Solution: Check for NULL regprog.
a59f2dfd0c
This commit is contained in:
@@ -66,6 +66,10 @@ func Test_buf_pattern_invalid()
|
||||
vsplit 0000000
|
||||
silent! buf [0--]\&\zs*\zs*e
|
||||
bwipe!
|
||||
|
||||
vsplit 00000000000000000000000000
|
||||
silent! buf [0--]\&\zs*\zs*e
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
||||
Reference in New Issue
Block a user