aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/version.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-08-25 22:35:20 +0200
committerGitHub <noreply@github.com>2022-08-25 22:35:20 +0200
commit6e9980fc3b6f8e246632aef0f4b8c0edf30e24f0 (patch)
tree163d6c0553e6c9f7a91d7d0d97e369722dca75be /src/nvim/version.c
parentbfd1adc62c615e7b65bdfe6d3c21158708eb4314 (diff)
parent40855b0143a864739a6037921e15699445dcf8a7 (diff)
downloadrneovim-6e9980fc3b6f8e246632aef0f4b8c0edf30e24f0.tar.gz
rneovim-6e9980fc3b6f8e246632aef0f4b8c0edf30e24f0.tar.bz2
rneovim-6e9980fc3b6f8e246632aef0f4b8c0edf30e24f0.zip
Merge pull request #19628 from dundargoc/refactor/char_u/2
refactor: replace char_u with char
Diffstat (limited to 'src/nvim/version.c')
-rw-r--r--src/nvim/version.c6
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(']');
}