diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-06-16 11:55:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-16 11:55:40 +0200 |
commit | 4c3c04d03cc0cdbccfb71b534fc3cd238fd3974d (patch) | |
tree | 22e59e2f57c824369bd8d5f0d561f42303886229 /src/nvim/fileio.c | |
parent | c990d65c37ded9ad9f4002a6eb6ec36aa29b4fe3 (diff) | |
parent | f419f914fc52fc86216b59e8ffa6fd510f79c6cd (diff) | |
download | rneovim-4c3c04d03cc0cdbccfb71b534fc3cd238fd3974d.tar.gz rneovim-4c3c04d03cc0cdbccfb71b534fc3cd238fd3974d.tar.bz2 rneovim-4c3c04d03cc0cdbccfb71b534fc3cd238fd3974d.zip |
Merge #8526 from janlazo/vim-8.0.0451
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 49de2ab81e..3b6a3a7995 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -4404,7 +4404,7 @@ char *modname(const char *fname, const char *ext, bool prepend_dot) // Search backwards until we hit a '/', '\' or ':'. // Then truncate what is after the '/', '\' or ':' to BASENAMELEN characters. char *ptr = NULL; - for (ptr = retval + fnamelen; ptr > retval; mb_ptr_back(retval, ptr)) { + for (ptr = retval + fnamelen; ptr > retval; MB_PTR_BACK(retval, ptr)) { if (vim_ispathsep(*ptr)) { ptr++; break; |