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:
zeertzjq 2024-08-31 09:06:34 +08:00 committed by GitHub
parent 55dc482e75
commit 53af02adba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {