mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-07 05:10:23 +09: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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user