Mercurial > vim
comparison src/evalfunc.c @ 16700:46322a4e6028 v8.1.1352
patch 8.1.1352: undofile() reports wrong name
commit https://github.com/vim/vim/commit/e9ebc9a91cac357fd4888f4b71fdff7d97b41160
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 19 15:27:14 2019 +0200
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 https://github.com/vim/vim/issues/4392,
closes #4394)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 19 May 2019 15:30:08 +0200 |
parents | ca1814eeecf5 |
children | 77bcb5055fec |
comparison
equal
deleted
inserted
replaced
16699:ca80f8eea726 | 16700:46322a4e6028 |
---|---|
15126 /* If there is no file name there will be no undo file. */ | 15126 /* If there is no file name there will be no undo file. */ |
15127 rettv->vval.v_string = NULL; | 15127 rettv->vval.v_string = NULL; |
15128 } | 15128 } |
15129 else | 15129 else |
15130 { | 15130 { |
15131 char_u *ffname = FullName_save(fname, FALSE); | 15131 char_u *ffname = FullName_save(fname, TRUE); |
15132 | 15132 |
15133 if (ffname != NULL) | 15133 if (ffname != NULL) |
15134 rettv->vval.v_string = u_get_undo_file_name(ffname, FALSE); | 15134 rettv->vval.v_string = u_get_undo_file_name(ffname, FALSE); |
15135 vim_free(ffname); | 15135 vim_free(ffname); |
15136 } | 15136 } |