0
0
mirror of https://github.com/vim/vim.git synced 2025-10-18 07:54:29 -04:00

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 #7123)
This commit is contained in:
Bram Moolenaar
2020-10-13 19:08:24 +02:00
parent 2b9b17ea5d
commit 21cbe175ee
4 changed files with 24 additions and 2 deletions

View File

@@ -1805,4 +1805,22 @@ func Test_edit_lastline_scroll()
close!
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