From 266461cc724d04292776cdd2149cdac328b635bd Mon Sep 17 00:00:00 2001 From: Camille Scholtz Date: Tue, 17 May 2016 17:53:49 +0200 Subject: [PATCH 1/2] Fix jumping in rxvt-unicode when switching focus --- cmd/micro/view.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/micro/view.go b/cmd/micro/view.go index f44ee174..09d70412 100644 --- a/cmd/micro/view.go +++ b/cmd/micro/view.go @@ -298,6 +298,7 @@ func (v *View) HandleEvent(event tcell.Event) { x, y := e.Position() x -= v.lineNumOffset - v.leftCol y += v.Topline + relocate = true button := e.Buttons() From baddc4107e9d4aee2d9b7478f9b6d60b760cde3e Mon Sep 17 00:00:00 2001 From: Camille Date: Tue, 17 May 2016 19:31:36 +0200 Subject: [PATCH 2/2] Change relocate from true to false --- 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 09d70412..1214b89c 100644 --- a/cmd/micro/view.go +++ b/cmd/micro/view.go @@ -298,7 +298,7 @@ func (v *View) HandleEvent(event tcell.Event) { x, y := e.Position() x -= v.lineNumOffset - v.leftCol y += v.Topline - relocate = true + relocate = false button := e.Buttons()