From c7b84a7eaa4df258155d675a20a045f4671b504a Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Tue, 19 Jul 2016 20:15:23 -0400 Subject: [PATCH] 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. --- cmd/micro/view.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/micro/view.go b/cmd/micro/view.go index 1a8dcf4c..897f005c 100644 --- a/cmd/micro/view.go +++ b/cmd/micro/view.go @@ -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 }