mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-28 01:54:42 +00:00
Fix gutter message line counting
This commit is contained in:
parent
30c7a9c4a5
commit
a262530217
1 changed files with 2 additions and 2 deletions
|
|
@ -465,7 +465,7 @@ func (v *View) DisplayView() {
|
|||
x++
|
||||
screen.SetContent(x, lineN, '>', nil, gutterStyle)
|
||||
x++
|
||||
if v.Cursor.y == lineN {
|
||||
if v.Cursor.y == lineN+v.Topline {
|
||||
messenger.Message(msg.msg)
|
||||
messenger.gutterMessage = true
|
||||
}
|
||||
|
|
@ -477,7 +477,7 @@ func (v *View) DisplayView() {
|
|||
x++
|
||||
screen.SetContent(x, lineN, ' ', nil, tcell.StyleDefault)
|
||||
x++
|
||||
if v.Cursor.y == lineN && messenger.gutterMessage {
|
||||
if v.Cursor.y == lineN+v.topline && messenger.gutterMessage {
|
||||
messenger.Reset()
|
||||
messenger.gutterMessage = false
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue