From 0b656246fd75431fa93ddfe300f65fe7200b8330 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 15 Sep 2017 11:44:16 +0530 Subject: [PATCH] Fix cursor width incorrect after scrolling --- kitty/line-buf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/line-buf.c b/kitty/line-buf.c index 4012e0a62..5211b0f16 100644 --- a/kitty/line-buf.c +++ b/kitty/line-buf.c @@ -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