aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/arabic.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/arabic.c')
-rw-r--r--src/nvim/arabic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/arabic.c b/src/nvim/arabic.c
index db78e0e68f..e76a75d37a 100644
--- a/src/nvim/arabic.c
+++ b/src/nvim/arabic.c
@@ -957,11 +957,11 @@ int arabic_shape(int c, int *ccp, int *c1p, int prev_c, int prev_c1, int next_c)
}
if ((curr_c != c) && (ccp != NULL)) {
- char_u buf[MB_MAXBYTES + 1];
+ char buf[MB_MAXBYTES + 1];
// Update the first byte of the character
utf_char2bytes(curr_c, buf);
- *ccp = buf[0];
+ *ccp = (uint8_t)buf[0];
}
// Return the shaped character