mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.1842: crash when USE_FNAME_CASE is defined and using :browse
Problem: Crash when USE_FNAME_CASE is defined and using :browse.
Solution: Don't use read-only memory for ".". (Yegappan Lakshmanan,
closes vim/vim#7123)
21cbe175ee
This commit is contained in:
parent
01dff1fbfb
commit
b946bcbc3b
@ -1559,3 +1559,23 @@ func Test_edit_is_a_directory()
|
||||
|
||||
call delete(dirname, 'rf')
|
||||
endfunc
|
||||
|
||||
func Test_edit_browse()
|
||||
" in the GUI this opens a file picker, we only test the terminal behavior
|
||||
CheckNotGui
|
||||
|
||||
" ":browse xxx" checks for the FileExplorer augroup and assumes editing "."
|
||||
" works then.
|
||||
augroup FileExplorer
|
||||
au!
|
||||
augroup END
|
||||
|
||||
" When the USE_FNAME_CASE is defined this used to cause a crash.
|
||||
browse enew
|
||||
bwipe!
|
||||
|
||||
browse split
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
Loading…
Reference in New Issue
Block a user