aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/version.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-03 20:47:29 +0800
committerGitHub <noreply@github.com>2022-02-03 20:47:29 +0800
commit89e308d7daeb8b2344105877200c7c5ae83760b0 (patch)
tree17618e0b9ad59a16e9b4b16e1b8b0d6ea0dcafbf /src/nvim/version.c
parent02d4c9158831be1ed89beb1c840d3d4efcf099c4 (diff)
parent2793fcae0ac2aef14c8f22636d579c68a97c0851 (diff)
downloadrneovim-89e308d7daeb8b2344105877200c7c5ae83760b0.tar.gz
rneovim-89e308d7daeb8b2344105877200c7c5ae83760b0.tar.bz2
rneovim-89e308d7daeb8b2344105877200c7c5ae83760b0.zip
Merge pull request #17226 from dundargoc/refactor/remove-redundant-code
vim-patch:8.2.4241: some type casts are redundant
Diffstat (limited to 'src/nvim/version.c')
-rw-r--r--src/nvim/version.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/version.c b/src/nvim/version.c
index 5e2a81795a..71cca52773 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -2093,7 +2093,7 @@ void list_in_columns(char_u **items, int size, int current)
// The rightmost column doesn't need a separator.
// Sacrifice it to fit in one more column if possible.
- int ncol = (int)(Columns + 1) / width;
+ int ncol = (Columns + 1) / width;
int nrow = item_count / ncol + (item_count % ncol ? 1 : 0);
int cur_row = 1;