mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
vim-patch:8.1.1352: undofile() reports wrong name
Problem: Undofile() reports wrong name. (Francisco Giordano)
Solution: Clean up the name before changing path separators. (closes vim/vim#4392,
closes vim/vim#4394)
e9ebc9a91c
This commit is contained in:
@@ -17669,7 +17669,7 @@ static void f_undofile(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
// If there is no file name there will be no undo file.
|
||||
rettv->vval.v_string = NULL;
|
||||
} else {
|
||||
char *ffname = FullName_save(fname, false);
|
||||
char *ffname = FullName_save(fname, true);
|
||||
|
||||
if (ffname != NULL) {
|
||||
rettv->vval.v_string = (char_u *)u_get_undo_file_name(ffname, false);
|
||||
|
Reference in New Issue
Block a user