mirror of
https://github.com/Hopiu/micro.git
synced 2026-05-23 21:55:50 +00:00
Fix problem with horizontal scrolling
This commit is contained in:
parent
69e45f9a4f
commit
5c2a2b1b7e
1 changed files with 2 additions and 2 deletions
|
|
@ -734,7 +734,7 @@ func (v *View) DisplayView() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if tabs[curTab].curView == v.Num && !v.Cursor.HasSelection() && v.Cursor.Y == curLineN && colN == v.Cursor.X {
|
if tabs[curTab].curView == v.Num && !v.Cursor.HasSelection() && v.Cursor.Y == curLineN && colN == v.Cursor.X {
|
||||||
v.DisplayCursor(screenX, screenY)
|
v.DisplayCursor(screenX-v.leftCol, screenY)
|
||||||
}
|
}
|
||||||
|
|
||||||
lineStyle := defStyle
|
lineStyle := defStyle
|
||||||
|
|
@ -828,7 +828,7 @@ func (v *View) DisplayView() {
|
||||||
// Here we are at a newline
|
// Here we are at a newline
|
||||||
|
|
||||||
if tabs[curTab].curView == v.Num && !v.Cursor.HasSelection() && v.Cursor.Y == curLineN && colN == v.Cursor.X {
|
if tabs[curTab].curView == v.Num && !v.Cursor.HasSelection() && v.Cursor.Y == curLineN && colN == v.Cursor.X {
|
||||||
v.DisplayCursor(screenX, screenY)
|
v.DisplayCursor(screenX-v.leftCol, screenY)
|
||||||
}
|
}
|
||||||
|
|
||||||
// The newline may be selected, in which case we should draw the selection style
|
// The newline may be selected, in which case we should draw the selection style
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue