Fix cursor width incorrect after scrolling

This commit is contained in:
Kovid Goyal 2017-09-15 11:44:16 +05:30
parent 28430a4104
commit 0b656246fd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -116,7 +116,7 @@ line(LineBuf *self, PyObject *y) {
unsigned int
linebuf_char_width_at(LineBuf *self, index_type x, index_type y) {
return (lineptr(self, y)[x].ch >> ATTRS_SHIFT) & WIDTH_MASK;
return (lineptr(self, self->line_map[y])[x].ch >> ATTRS_SHIFT) & WIDTH_MASK;
}
void