aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/path.c
diff options
context:
space:
mode:
authorZviRackover <zvirack@gmail.com>2018-08-11 17:14:10 +0300
committerJustin M. Keyes <justinkz@gmail.com>2018-08-11 16:14:10 +0200
commit22311457ab60be9335f8e630c8b794340d39e466 (patch)
treeb0b1a1a32009fd80cfeb2b77ffeae9202b21bbff /src/nvim/path.c
parent6aefae8c4e6e273ae96f1135b74a081543b548e5 (diff)
downloadrneovim-22311457ab60be9335f8e630c8b794340d39e466.tar.gz
rneovim-22311457ab60be9335f8e630c8b794340d39e466.tar.bz2
rneovim-22311457ab60be9335f8e630c8b794340d39e466.zip
refactor: Replace vim_strrchr() with strrchar() (#8718)
ref #1474
Diffstat (limited to 'src/nvim/path.c')
-rw-r--r--src/nvim/path.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/path.c b/src/nvim/path.c
index 0b90329686..cc4a5f62a7 100644
--- a/src/nvim/path.c
+++ b/src/nvim/path.c
@@ -1770,7 +1770,7 @@ void path_fix_case(char_u *name)
}
// Open the directory where the file is located.
- char_u *slash = vim_strrchr(name, '/');
+ char_u *slash = STRRCHR(name, '/');
char_u *tail;
Directory dir;
bool ok;
@@ -2213,10 +2213,10 @@ static int path_to_absolute(const char_u *fname, char_u *buf, size_t len,
// expand it if forced or not an absolute path
if (force || !path_is_absolute(fname)) {
- p = vim_strrchr(fname, '/');
+ p = STRRCHR(fname, '/');
#ifdef WIN32
if (p == NULL) {
- p = vim_strrchr(fname, '\\');
+ p = STRRCHR(fname, '\\');
}
#endif
if (p != NULL) {