diff options
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 0417c3daed..5692691e77 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; |