Merge pull request #257 from peco/fix-not-highlighting-issue

Fix not highlighting issue
This commit is contained in:
Syohei YOSHIDA 2015-08-20 14:55:11 +09:00
commit ec38f98067

View file

@ -223,11 +223,13 @@ func doSelectAll(i *Input, _ termbox.Event) {
b := i.GetCurrentLineBuffer()
for x := 0; x < b.Size(); x++ {
if l, err := b.LineAt(x); err == nil {
l.SetDirty(true)
i.selection.Add(l)
} else {
i.selection.Remove(l)
}
}
i.SendDraw()
}
func doSelectVisible(i *Input, _ termbox.Event) {