diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-07-02 17:13:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-02 17:13:25 +0200 |
commit | c1b591dc8f99577c419192c7b34e3999758ed69f (patch) | |
tree | b8d61ff93b47fdec47982f0452d76975226322ae /src/nvim/screen.c | |
parent | ed429c00d76414d07d7c7129f65ddf9be68e24f4 (diff) | |
parent | 3b8804571c565a91c9ce729bb487c7ba21b659e0 (diff) | |
download | rneovim-c1b591dc8f99577c419192c7b34e3999758ed69f.tar.gz rneovim-c1b591dc8f99577c419192c7b34e3999758ed69f.tar.bz2 rneovim-c1b591dc8f99577c419192c7b34e3999758ed69f.zip |
Merge pull request #19137 from dundargoc/refactor/char_u-to-char
refactor: replace char_u
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index c2a88bb4a6..32e2d515e1 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -4845,7 +4845,7 @@ void win_redr_status_matches(expand_T *xp, int num_matches, char_u **matches, in clen = len; i = first_match; - while ((long)(clen + status_match_len(xp, L_MATCH(i)) + 2) < Columns) { + while (clen + status_match_len(xp, L_MATCH(i)) + 2 < Columns) { if (i == match) { selstart = buf + len; selstart_col = clen; @@ -6412,7 +6412,7 @@ void get_trans_bufname(buf_T *buf) } else { home_replace(buf, buf->b_fname, (char *)NameBuff, MAXPATHL, true); } - trans_characters(NameBuff, MAXPATHL); + trans_characters((char *)NameBuff, MAXPATHL); } /* @@ -6613,7 +6613,7 @@ static void win_redr_ruler(win_T *wp, bool always) (wp->w_buffer->b_ml.ml_flags & ML_EMPTY) ? (int64_t)0L : (int64_t)wp->w_cursor.lnum); size_t len = STRLEN(buffer); - col_print((char_u *)buffer + len, RULER_BUF_LEN - len, + col_print(buffer + len, RULER_BUF_LEN - len, empty_line ? 0 : (int)wp->w_cursor.col + 1, (int)virtcol + 1); |