diff options
author | dundargoc <gocdundar@gmail.com> | 2023-12-28 13:42:24 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-12-30 12:45:38 +0100 |
commit | c89292fcb7f2ebf06efb7c1d00c28f34c6f68fec (patch) | |
tree | b1257a572495337ca936c47839bb08aa45528c84 /src/nvim/charset.c | |
parent | d634cd5b0bc3ac6bdf285432f74a1c10f12b6031 (diff) | |
download | rneovim-c89292fcb7f2ebf06efb7c1d00c28f34c6f68fec.tar.gz rneovim-c89292fcb7f2ebf06efb7c1d00c28f34c6f68fec.tar.bz2 rneovim-c89292fcb7f2ebf06efb7c1d00c28f34c6f68fec.zip |
refactor: follow style guide
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r-- | src/nvim/charset.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c index fc900fd3a7..82a2a3bfe7 100644 --- a/src/nvim/charset.c +++ b/src/nvim/charset.c @@ -85,7 +85,7 @@ int init_chartab(void) /// /// @return FAIL if 'iskeyword', 'isident', 'isfname' or 'isprint' option has /// an error, OK otherwise. -int buf_init_chartab(buf_T *buf, int global) +int buf_init_chartab(buf_T *buf, bool global) { int c; @@ -490,7 +490,7 @@ char *str_foldcase(char *str, int orglen, char *buf, int buflen) } } } - (void)utf_char2bytes(lc, STR_PTR(i)); + utf_char2bytes(lc, STR_PTR(i)); } // skip to next multi-byte char @@ -1446,9 +1446,9 @@ bool rem_backslash(const char *str) && str[1] != '?' && !vim_isfilec((uint8_t)str[1]))); -#else // ifdef BACKSLASH_IN_FILENAME +#else return str[0] == '\\' && str[1] != NUL; -#endif // ifdef BACKSLASH_IN_FILENAME +#endif } /// Halve the number of backslashes in a file name argument. |