mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-30 12:50:29 +00:00
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:
parent
e890c878f3
commit
c7b84a7eaa
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue