From aa28e070e9f953c26405d765addd9f780ede2c5a Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Fri, 19 Jul 2019 09:12:58 +0200 Subject: refactor: use int for Columns and Rows --- src/nvim/ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/ops.c') diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 0f26d83597..29609def89 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -3433,7 +3433,7 @@ void ex_display(exarg_T *eap) msg_putchar(name); MSG_PUTS(" "); - int n = (int)Columns - 6; + int n = Columns - 6; for (size_t j = 0; j < yb->y_size && n > 1; j++) { if (j) { MSG_PUTS_ATTR("^J", attr); @@ -3525,7 +3525,7 @@ dis_msg ( int n; int l; - n = (int)Columns - 6; + n = Columns - 6; while (*p != NUL && !(*p == ESC && skip_esc && *(p + 1) == NUL) && (n -= ptr2cells(p)) >= 0) { -- cgit