mirror of
https://github.com/neovim/neovim.git
synced 2026-07-30 12:28:06 +00:00
vim-patch:9.1.2088: Redundant NULL checks in find_pattern_in_path() (#37432)
Problem: Redundant NULL checks in find_pattern_in_path().
Solution: Remove the NULL checks. Also fix typos in test_diffmode.vim
(zeertzjq).
After assigning to inc_opt on line 2976, it's dereferenced immediately,
and not assigned another value afterwards, so checking for NULL after
line 2977 is redundant.
closes: vim/vim#19185
ce394b13e9
This commit is contained in:
@@ -3311,7 +3311,7 @@ func Test_diff_add_prop_in_autocmd()
|
||||
call term_sendkeys(buf, ":diffsplit Xdiffsplit_file\<CR>")
|
||||
call VerifyScreenDump(buf, 'Test_diff_add_prop_in_autocmd_01', {})
|
||||
|
||||
call StopVimInTerminal(buf)
|
||||
call StopVimInTerminal(buf)
|
||||
endfunc
|
||||
|
||||
" this was causing a use-after-free by calling winframe_remove() recursively
|
||||
|
||||
Reference in New Issue
Block a user