Fix cursor width incorrect after scrolling
This commit is contained in:
parent
28430a4104
commit
0b656246fd
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user