diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2021-10-03 03:04:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-02 18:04:21 -0700 |
commit | ad1c42a97d673b9fd2bf64b2382c87fbe65dfc73 (patch) | |
tree | 1dc5d77ed6ba987d0c6af8e492038ad7873e62b4 /src/nvim/getchar.c | |
parent | 4449297d12b70f5e6a65365e39aacf5e42303ffd (diff) | |
download | rneovim-ad1c42a97d673b9fd2bf64b2382c87fbe65dfc73.tar.gz rneovim-ad1c42a97d673b9fd2bf64b2382c87fbe65dfc73.tar.bz2 rneovim-ad1c42a97d673b9fd2bf64b2382c87fbe65dfc73.zip |
vim-patch:8.2.3460: some type casts are not needed #15868
Problem: Some type casts are not needed.
Solution: Remove unnecessary type casts. (closes vim/vim#8934)
https://github.com/vim/vim/commit/dfa5e464d459f84200a73d178f1ecefe75bbe511
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 16ad890360..15acd73aa5 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -1570,7 +1570,7 @@ int vgetc(void) // a CSI (0x9B), // of a K_SPECIAL - KS_EXTRA - KE_CSI, which is CSI too. c = vgetorpeek(true); - if (vgetorpeek(true) == (int)KE_CSI && c == KS_EXTRA) { + if (vgetorpeek(true) == KE_CSI && c == KS_EXTRA) { buf[i] = CSI; } } @@ -1946,7 +1946,7 @@ static int vgetorpeek(bool advance) && (mp->m_keys[0] != K_SPECIAL || mp->m_keys[1] != KS_EXTRA || mp->m_keys[2] - != (int)KE_SNR)) { + != KE_SNR)) { continue; } /* @@ -2228,7 +2228,7 @@ static int vgetorpeek(bool advance) if (!ascii_iswhite(ptr[col])) { curwin->w_wcol = vcol; } - vcol += lbr_chartabsize(ptr, ptr + col, (colnr_T)vcol); + vcol += lbr_chartabsize(ptr, ptr + col, vcol); col += utfc_ptr2len(ptr + col); } curwin->w_wrow = curwin->w_cline_row |