mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
Refactor: remove mb_ptr2len_len, mb_ptr2cells and mb_ptr2cells_len
Remove occurences of these macros.
This commit is contained in:
@@ -2153,7 +2153,7 @@ static void set_cmdspos_cursor(void)
|
||||
static void correct_cmdspos(int idx, int cells)
|
||||
{
|
||||
if ((*mb_ptr2len)(ccline.cmdbuff + idx) > 1
|
||||
&& (*mb_ptr2cells)(ccline.cmdbuff + idx) > 1
|
||||
&& utf_ptr2cells(ccline.cmdbuff + idx) > 1
|
||||
&& ccline.cmdspos % Columns + cells > Columns)
|
||||
ccline.cmdspos++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user