mirror of
https://github.com/Hopiu/micro.git
synced 2026-05-18 19:41:08 +00:00
parent
e1e310a96e
commit
f3eaf99665
1 changed files with 6 additions and 4 deletions
|
|
@ -122,10 +122,8 @@ func (i *InfoWindow) displayBuffer() {
|
|||
|
||||
totalwidth := blocX - nColsBeforeStart
|
||||
for len(line) > 0 {
|
||||
if activeC.X == blocX {
|
||||
screen.ShowCursor(vlocX, i.Y)
|
||||
}
|
||||
|
||||
curVX := vlocX
|
||||
curBX := blocX
|
||||
r, size := utf8.DecodeRune(line)
|
||||
|
||||
draw(r, i.defStyle())
|
||||
|
|
@ -151,6 +149,9 @@ func (i *InfoWindow) displayBuffer() {
|
|||
draw(char, i.defStyle())
|
||||
}
|
||||
}
|
||||
if activeC.X == curBX {
|
||||
screen.ShowCursor(curVX, i.Y)
|
||||
}
|
||||
totalwidth += width
|
||||
if vlocX >= i.Width {
|
||||
break
|
||||
|
|
@ -208,6 +209,7 @@ func (i *InfoWindow) scrollToSuggestion() {
|
|||
}
|
||||
|
||||
func (i *InfoWindow) Display() {
|
||||
i.Clear()
|
||||
x := 0
|
||||
if config.GetGlobalOption("keymenu").(bool) {
|
||||
i.displayKeyMenu()
|
||||
|
|
|
|||
Loading…
Reference in a new issue