From db8938413c3e8e7abe1152fa22cfc8b0b465ab96 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Fri, 2 Apr 2021 11:05:26 +0200 Subject: [PATCH] Fix cursor display in command mode --- data/core/docview.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/docview.lua b/data/core/docview.lua index 6e77ab57..91173edb 100644 --- a/data/core/docview.lua +++ b/data/core/docview.lua @@ -363,7 +363,7 @@ function DocView:draw_line_body(idx, x, y) local lh = self:get_line_height() local x1 = x + self:get_col_x_offset(line, col) local caret_width - if core.vim_mode and self.editing_mode == 'command' then + if core.get_editing_mode(self) == 'command' then caret_width = self:get_font():get_width(self.doc.lines[line1]:sub(col1, col1)) else caret_width = style.caret_width