mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
refactor(plines): correct double-width condition (#30200)
To check for a non-ASCII character, the condition should be >= 0x80, not > 0x80. In this case it doesn't really matter as the 0x80 character is unprintable and occupies 4 cells, but still make it consistent.
This commit is contained in:
parent
55dc482e75
commit
53af02adba
@ -147,7 +147,7 @@ CharSize charsize_regular(CharsizeArg *csarg, char *const cur, colnr_T const vco
|
||||
size = kInvalidByteCells;
|
||||
} else {
|
||||
size = ptr2cells(cur);
|
||||
is_doublewidth = size == 2 && cur_char > 0x80;
|
||||
is_doublewidth = size == 2 && cur_char >= 0x80;
|
||||
}
|
||||
|
||||
if (csarg->virt_row >= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user