From 0bec032eb6b2e80440b97c467a5ad25c6d00cdeb Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Wed, 15 Dec 2021 09:12:04 +0000 Subject: [PATCH] absolute line number in insert mode --- core/src/editor.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/editor.rs b/core/src/editor.rs index 9d52c6b1..8514aa8f 100644 --- a/core/src/editor.rs +++ b/core/src/editor.rs @@ -1268,6 +1268,8 @@ fn paint_gutter(&self, ctx: &mut PaintCtx, gutter_width: f64) { } let content = if *self.main_split.active != self.view_id { line + 1 + } else if self.editor.cursor.is_insert() { + line + 1 } else { if line == current_line { line + 1