mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
Remove has_mbytes from lines local to parent commit
This commit is contained in:
@@ -2152,7 +2152,7 @@ static void set_cmdspos_cursor(void)
|
||||
*/
|
||||
static void correct_cmdspos(int idx, int cells)
|
||||
{
|
||||
if ((*mb_ptr2len)(ccline.cmdbuff + idx) > 1
|
||||
if (utfc_ptr2len(ccline.cmdbuff + idx) > 1
|
||||
&& utf_ptr2cells(ccline.cmdbuff + idx) > 1
|
||||
&& ccline.cmdspos % Columns + cells > Columns)
|
||||
ccline.cmdspos++;
|
||||
|
Reference in New Issue
Block a user