Rehighlight a split as soon as it is opened

I think this might fix the problem in #198, but I can't seemd to
reproduce it.
This commit is contained in:
Zachary Yedidia 2016-07-19 20:15:23 -04:00
parent e890c878f3
commit c7b84a7eaa

View file

@ -254,6 +254,7 @@ func (v *View) HSplit(buf *Buffer) bool {
v.splitChild = newView
tab.views = append(tab.views, newView)
newView.Resize(screen.Size())
newView.matches = Match(newView)
return false
}
@ -282,6 +283,7 @@ func (v *View) VSplit(buf *Buffer) bool {
v.splitChild = newView
tab.views = append(tab.views, newView)
newView.Resize(screen.Size())
newView.matches = Match(newView)
return false
}