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:
Jan Edmund Lazo 2020-10-13 18:58:58 -04:00
parent 01dff1fbfb
commit b946bcbc3b
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -1559,3 +1559,23 @@ func Test_edit_is_a_directory()
call delete(dirname, 'rf') call delete(dirname, 'rf')
endfunc 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