absolute line number in insert mode

This commit is contained in:
Dongdong Zhou 2021-12-15 09:12:04 +00:00
parent 7d86c61278
commit 0bec032eb6
1 changed files with 2 additions and 0 deletions

View File

@ -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