aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spellfile.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/spellfile.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/spellfile.c')
-rw-r--r--src/nvim/spellfile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c
index b96e8a5948..87fe73f692 100644
--- a/src/nvim/spellfile.c
+++ b/src/nvim/spellfile.c
@@ -880,9 +880,10 @@ void suggest_load_files(void)
// don't try again and again.
slang->sl_sugloaded = true;
- dotp = vim_strrchr(slang->sl_fname, '.');
- if (dotp == NULL || fnamecmp(dotp, ".spl") != 0)
+ dotp = STRRCHR(slang->sl_fname, '.');
+ if (dotp == NULL || fnamecmp(dotp, ".spl") != 0) {
continue;
+ }
STRCPY(dotp, ".sug");
fd = mch_fopen((char *)slang->sl_fname, "r");
if (fd == NULL)