diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-07-31 16:20:57 +0200 |
---|---|---|
committer | Dundar Göc <gocdundar@gmail.com> | 2022-08-25 18:59:12 +0200 |
commit | 40855b0143a864739a6037921e15699445dcf8a7 (patch) | |
tree | 61c7e85a2cad6ca5d97fd436056ce34d4a655698 /src/nvim/version.c | |
parent | 22f920030214c0023525c59daf763441baddba1a (diff) | |
download | rneovim-40855b0143a864739a6037921e15699445dcf8a7.tar.gz rneovim-40855b0143a864739a6037921e15699445dcf8a7.tar.bz2 rneovim-40855b0143a864739a6037921e15699445dcf8a7.zip |
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/version.c')
-rw-r--r-- | src/nvim/version.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/version.c b/src/nvim/version.c index 34ded3460f..0e0aac0354 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -2072,7 +2072,7 @@ void list_in_columns(char **items, int size, int current) // Find the length of the longest item, use that + 1 as the column width. int i; for (i = 0; size < 0 ? items[i] != NULL : i < size; i++) { - int l = vim_strsize((char *)items[i]) + (i == current ? 2 : 0); + int l = vim_strsize(items[i]) + (i == current ? 2 : 0); if (l > width) { width = l; @@ -2084,7 +2084,7 @@ void list_in_columns(char **items, int size, int current) if (Columns < width) { // Not enough screen columns - show one per line for (i = 0; i < item_count; i++) { - version_msg_wrap((char *)items[i], i == current); + version_msg_wrap(items[i], i == current); if (msg_col > 0 && i < item_count - 1) { msg_putchar('\n'); } @@ -2106,7 +2106,7 @@ void list_in_columns(char **items, int size, int current) if (idx == current) { msg_putchar('['); } - msg_puts((char *)items[idx]); + msg_puts(items[idx]); if (idx == current) { msg_putchar(']'); } |