mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
vim-patch:8.1.1371: cannot recover from a swap file #11081
Problem: Cannot recover from a swap file.
Solution: Do not expand environment variables in the swap file name.
Do not check the extension when we already know a file is a swap
file. (Ken Takata, closes 4415, closes vim/vim#4369)
99499b1c05
This commit is contained in:

committed by
Justin M. Keyes

parent
1396cc9abb
commit
fe074611cd
@@ -4458,7 +4458,8 @@ find_pattern_in_path(
|
||||
if (i == max_path_depth) {
|
||||
break;
|
||||
}
|
||||
if (path_full_compare(new_fname, files[i].name, true) & kEqualFiles) {
|
||||
if (path_full_compare(new_fname, files[i].name,
|
||||
true, true) & kEqualFiles) {
|
||||
if (type != CHECK_PATH
|
||||
&& action == ACTION_SHOW_ALL && files[i].matched) {
|
||||
msg_putchar('\n'); // cursor below last one */
|
||||
|
Reference in New Issue
Block a user