diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-05-03 11:06:27 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-05-04 15:25:54 +0200 |
commit | 5576d30e89153c817fb1a8d23c30cfc0432bc7c6 (patch) | |
tree | 3a1457be276d95ffccbb760e79c708ab11b2cd54 /src/nvim/shada.c | |
parent | 3ec93ca92cb08faed342586e86a6f21b35264376 (diff) | |
download | rneovim-5576d30e89153c817fb1a8d23c30cfc0432bc7c6.tar.gz rneovim-5576d30e89153c817fb1a8d23c30cfc0432bc7c6.tar.bz2 rneovim-5576d30e89153c817fb1a8d23c30cfc0432bc7c6.zip |
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/shada.c')
-rw-r--r-- | src/nvim/shada.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/nvim/shada.c b/src/nvim/shada.c index a19dbac6f3..e89efe1cbc 100644 --- a/src/nvim/shada.c +++ b/src/nvim/shada.c @@ -1289,9 +1289,7 @@ static void shada_read(ShaDaReadDef *const sd_reader, const int flags) XFREE_CLEAR(cur_entry.data.filemark.fname); } xfmark_T fm = (xfmark_T) { - .fname = (char_u *)(buf == NULL - ? cur_entry.data.filemark.fname - : NULL), + .fname = buf == NULL ? cur_entry.data.filemark.fname : NULL, .fmark = { .mark = cur_entry.data.filemark.mark, .fnum = (buf == NULL ? 0 : buf->b_fnum), @@ -4027,9 +4025,9 @@ static inline size_t shada_init_jumps(PossiblyFreedShadaEntry *jumps, : fm.fmark.fnum != 0) { continue; } - const char *const fname = (char *)(fm.fmark.fnum == 0 - ? (fm.fname == NULL ? NULL : fm.fname) - : buf ? buf->b_ffname : NULL); + const char *const fname = + (char *)(fm.fmark.fnum == + 0 ? (fm.fname == NULL ? NULL : (char_u *)fm.fname) : buf ? buf->b_ffname : NULL); if (fname == NULL) { continue; } |