aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/change.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/change.c b/src/nvim/change.c
index cf7d5dfc4b..cc8acb466e 100644
--- a/src/nvim/change.c
+++ b/src/nvim/change.c
@@ -799,7 +799,7 @@ void ins_char_bytes(char *buf, size_t charlen)
if (!p_ri || (State & REPLACE_FLAG)) {
// Normal insert: move cursor right
- curwin->w_cursor.col += (int)charlen;
+ curwin->w_cursor.col += (colnr_T)charlen;
}
// TODO(Bram): should try to update w_row here, to avoid recomputing it later.
}
@@ -829,7 +829,7 @@ void ins_str(char *s, size_t slen)
memmove(newp + col + slen, oldp + col, (size_t)bytes);
ml_replace(lnum, newp, false);
inserted_bytes(lnum, col, 0, (int)slen);
- curwin->w_cursor.col += (int)slen;
+ curwin->w_cursor.col += (colnr_T)slen;
}
// Delete one character under the cursor.