mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +00:00
refactor: remove redundant casts
This commit is contained in:
@@ -3988,7 +3988,7 @@ int inc(pos_T *lp)
|
||||
if (lp->col != MAXCOL) {
|
||||
const char *const p = ml_get_pos(lp);
|
||||
if (*p != NUL) { // still within line, move to next char (may be NUL)
|
||||
const int l = utfc_ptr2len((char *)p);
|
||||
const int l = utfc_ptr2len(p);
|
||||
|
||||
lp->col += l;
|
||||
return ((p[l] != NUL) ? 0 : 2);
|
||||
|
Reference in New Issue
Block a user