diff options
author | Francisco Giordano <frangio.1@gmail.com> | 2019-05-19 15:25:18 -0300 |
---|---|---|
committer | Francisco Giordano <frangio.1@gmail.com> | 2019-05-19 15:31:23 -0300 |
commit | 8b3c0b87ffdf88c7f299720c625f50cdf67c8b3a (patch) | |
tree | 992fbc89aabf3c825ecccbf41706d194e1a3a68b /src/nvim/eval.c | |
parent | 8e941c59ec239724c00f240deaa5a86ee0e0e1ba (diff) | |
download | rneovim-8b3c0b87ffdf88c7f299720c625f50cdf67c8b3a.tar.gz rneovim-8b3c0b87ffdf88c7f299720c625f50cdf67c8b3a.tar.bz2 rneovim-8b3c0b87ffdf88c7f299720c625f50cdf67c8b3a.zip |
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)
https://github.com/vim/vim/commit/e9ebc9a91cac357fd4888f4b71fdff7d97b41160
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index bd61925b0d..82dc0116eb 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -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); |