diff options
author | Dundar Göc <gocdundar@gmail.com> | 2022-08-26 23:11:25 +0200 |
---|---|---|
committer | dundargoc <gocdundar@gmail.com> | 2022-09-10 11:17:40 +0200 |
commit | 684bc749efef0fa31395d349f4495d79ec5f3fd5 (patch) | |
tree | 2f20ecdf42e443e48ac981d204c316449aa87821 /src/nvim/runtime.c | |
parent | 82d93429e78b661027c05f3fbc862aa0e0c6cd95 (diff) | |
download | rneovim-684bc749efef0fa31395d349f4495d79ec5f3fd5.tar.gz rneovim-684bc749efef0fa31395d349f4495d79ec5f3fd5.tar.bz2 rneovim-684bc749efef0fa31395d349f4495d79ec5f3fd5.zip |
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/runtime.c')
-rw-r--r-- | src/nvim/runtime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/runtime.c b/src/nvim/runtime.c index b43db2256f..78a157f9fb 100644 --- a/src/nvim/runtime.c +++ b/src/nvim/runtime.c @@ -1065,7 +1065,7 @@ static void add_pack_start_dir(char *fname, void *cookie) continue; } STRLCPY(buf, fname, MAXPATHL); - STRLCAT(buf, start_pat[i], sizeof buf); + xstrlcat(buf, start_pat[i], sizeof buf); if (pack_has_entries(buf)) { add_pack_dir_to_rtp(buf, true); } @@ -2121,7 +2121,7 @@ scriptitem_T *get_current_script_id(char **fnamep, sctx_T *ret_sctx) // - If a script is deleted and another script is written, with a // different name, the inode may be re-used. si = &SCRIPT_ITEM(script_sctx.sc_sid); - if (si->sn_name != NULL && FNAMECMP(si->sn_name, *fnamep) == 0) { + if (si->sn_name != NULL && path_fnamecmp(si->sn_name, *fnamep) == 0) { // Found it! break; } |