diff options
author | Dundar Göc <gocdundar@gmail.com> | 2022-08-26 23:11:25 +0200 |
---|---|---|
committer | dundargoc <gocdundar@gmail.com> | 2022-10-15 13:18:46 +0200 |
commit | 04cdea5f4ac49fa62cc4091a5c26791b80b4cc4c (patch) | |
tree | 10e5be3cf91cee35ad2150e78b2d6aaa4ce5aa13 /src/nvim/ex_session.c | |
parent | 433818351bc82550a1cb658f5d2ff060b9014d3c (diff) | |
download | rneovim-04cdea5f4ac49fa62cc4091a5c26791b80b4cc4c.tar.gz rneovim-04cdea5f4ac49fa62cc4091a5c26791b80b4cc4c.tar.bz2 rneovim-04cdea5f4ac49fa62cc4091a5c26791b80b4cc4c.zip |
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/ex_session.c')
-rw-r--r-- | src/nvim/ex_session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_session.c b/src/nvim/ex_session.c index e907c45e79..eae3b4af1a 100644 --- a/src/nvim/ex_session.c +++ b/src/nvim/ex_session.c @@ -956,7 +956,7 @@ void ex_mkrc(exarg_T *eap) } // When using 'viewdir' may have to create the directory. - if (using_vdir && !os_isdir((char *)p_vdir)) { + if (using_vdir && !os_isdir(p_vdir)) { vim_mkdir_emsg((const char *)p_vdir, 0755); } @@ -1095,7 +1095,7 @@ static char *get_view_file(int c) len++; } } - char *retval = xmalloc(strlen(sname) + len + STRLEN(p_vdir) + 9); + char *retval = xmalloc(strlen(sname) + len + strlen(p_vdir) + 9); STRCPY(retval, p_vdir); add_pathsep(retval); char *s = retval + strlen(retval); |