inactive editor char under cursor fix
@@ -1333,7 +1333,8 @@ fn paint_content(
.enumerate()
{
let line = i + start_line;
- let cursor_index = if mode != Mode::Insert && line == cursor_line {
+ let cursor_index =
+ if is_focused && mode != Mode::Insert && line == cursor_line {
let cursor_line_start = self.buffer.offset_of_line(cursor_line);
let index = self
.buffer
