diff options
Diffstat (limited to 'src/nvim/statusline.c')
-rw-r--r-- | src/nvim/statusline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/statusline.c b/src/nvim/statusline.c index 8b56eaadf0..b9cddb7b94 100644 --- a/src/nvim/statusline.c +++ b/src/nvim/statusline.c @@ -77,7 +77,7 @@ void win_redr_status(win_T *wp) width = is_stl_global ? Columns : wp->w_width; get_trans_bufname(wp->w_buffer); - p = NameBuff; + p = (char_u *)NameBuff; len = (int)STRLEN(p); if (bt_help(wp->w_buffer) @@ -138,7 +138,7 @@ void win_redr_status(win_T *wp) if (get_keymap_str(wp, "<%s>", (char *)NameBuff, MAXPATHL) && this_ru_col - len > (int)(STRLEN(NameBuff) + 1)) { - grid_puts(&default_grid, NameBuff, row, + grid_puts(&default_grid, (char_u *)NameBuff, row, (int)((size_t)this_ru_col - STRLEN(NameBuff) - 1), attr); } |