mirror of
https://github.com/zyedidia/micro.git
synced 2025-06-18 23:05:40 -04:00
add missing offset to current highlighting line. Fix #795
This commit is contained in:
parent
4f2fc096e5
commit
68526dc119
@ -935,7 +935,7 @@ func (v *View) DisplayView() {
|
|||||||
|
|
||||||
if v.Buf.Settings["cursorline"].(bool) && tabs[curTab].CurView == v.Num &&
|
if v.Buf.Settings["cursorline"].(bool) && tabs[curTab].CurView == v.Num &&
|
||||||
!v.Cursor.HasSelection() && v.Cursor.Y == realLineN {
|
!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")
|
style := GetColor("cursor-line")
|
||||||
fg, _, _ := style.Decompose()
|
fg, _, _ := style.Decompose()
|
||||||
style = style.Background(fg)
|
style = style.Background(fg)
|
||||||
|
Loading…
Reference in New Issue
Block a user