From 68526dc1194d821b93fcb915d94e6e93f09e1b2c Mon Sep 17 00:00:00 2001 From: tommy Date: Sat, 2 Sep 2017 09:40:35 +0100 Subject: [PATCH] add missing offset to current highlighting line. Fix #795 --- cmd/micro/view.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/micro/view.go b/cmd/micro/view.go index fa628b18..92ae56b0 100644 --- a/cmd/micro/view.go +++ b/cmd/micro/view.go @@ -935,7 +935,7 @@ func (v *View) DisplayView() { if v.Buf.Settings["cursorline"].(bool) && tabs[curTab].CurView == v.Num && !v.Cursor.HasSelection() && v.Cursor.Y == realLineN { - for i := lastX; i < xOffset+v.Width; i++ { + for i := lastX; i < xOffset+v.Width-v.lineNumOffset; i++ { style := GetColor("cursor-line") fg, _, _ := style.Decompose() style = style.Background(fg)