From 576cd5293abd94e18b7658e420b5e2ea3b830bdb Mon Sep 17 00:00:00 2001 From: neilalex Date: Mon, 22 May 2017 16:57:55 -0400 Subject: [PATCH 1/2] Fix #513 left arrow does not move cursor --- sublimerepl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sublimerepl.py b/sublimerepl.py index 36849433..e9ba3b4e 100644 --- a/sublimerepl.py +++ b/sublimerepl.py @@ -306,7 +306,8 @@ def next_command(self, edit): def update_view(self, view): """If projects were switched, a view could be a new instance""" if self._view is not view: - self._view = view + self._view = view + self._window = self._view.window() def adjust_end(self): if self.repl.suppress_echo: From d640a6cc6fa8647aa0a18255843a6be7f1de2734 Mon Sep 17 00:00:00 2001 From: Neil Alexander McQuarrie Date: Tue, 7 Aug 2018 21:35:15 -0400 Subject: [PATCH 2/2] Fix extra whitespace issue --- sublimerepl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sublimerepl.py b/sublimerepl.py index e9ba3b4e..4a9bfc45 100644 --- a/sublimerepl.py +++ b/sublimerepl.py @@ -306,7 +306,7 @@ def next_command(self, edit): def update_view(self, view): """If projects were switched, a view could be a new instance""" if self._view is not view: - self._view = view + self._view = view self._window = self._view.window() def adjust_end(self):