From 89863660ba95768618b46e7fe53b1e867e3cea98 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Sun, 28 May 2017 19:52:56 -0400 Subject: [PATCH] Fix boolean logic order for hiding cursor Fixes #684 --- cmd/micro/view.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/micro/view.go b/cmd/micro/view.go index b6e4640d..b2019e90 100644 --- a/cmd/micro/view.go +++ b/cmd/micro/view.go @@ -937,7 +937,7 @@ func (v *View) Display() { } v.DisplayView() // Don't draw the cursor if it is out of the viewport or if it has a selection - if (v.Cursor.Y-v.Topline < 0 || v.Cursor.Y-v.Topline > v.Height-1) || (v.Cursor.HasSelection() && v.Num == tabs[curTab].CurView) { + if v.Num == tabs[curTab].CurView && (v.Cursor.Y-v.Topline < 0 || v.Cursor.Y-v.Topline > v.Height-1 || v.Cursor.HasSelection()) { screen.HideCursor() } _, screenH := screen.Size()