From 6676565b7e5cd7e08ed851868e2e7596382d43b6 Mon Sep 17 00:00:00 2001
From: Rafael Laverde <leafar91@gmail.com>
Date: Mon, 27 Mar 2017 10:25:31 -0500
Subject: [PATCH] Set ClickFocus to Editor plugin to avoid tab scrolling when
 changing current tab.

---
 spyder/plugins/editor.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/spyder/plugins/editor.py b/spyder/plugins/editor.py
index e76262e31f0..355d9f4d145 100644
--- a/spyder/plugins/editor.py
+++ b/spyder/plugins/editor.py
@@ -457,6 +457,7 @@ def __init__(self, parent, ignore_last_opened_files=False):
         self.splitter.setStretchFactor(1, 1)
         layout.addWidget(self.splitter)
         self.setLayout(layout)
+        self.setFocusPolicy(Qt.ClickFocus)
         
         # Editor's splitter state
         state = self.get_option('splitter_state', None)