diff --git a/plugin/core/input_handlers.py b/plugin/core/input_handlers.py index 1bfdf6b4a..3deaa7e64 100644 --- a/plugin/core/input_handlers.py +++ b/plugin/core/input_handlers.py @@ -114,11 +114,6 @@ def attach_listener(self) -> None: raise RuntimeError('Could not find the Command Palette input field view') self.listener = InputListener(self) self.listener.attach(buffer) - # --- Hack needed because the initial_selection method is not supported on Python 3.3 API - selection = self.input_view.sel() - selection.clear() - selection.add(len(self.text)) - # --- End of hack @final def list_items(self) -> List[sublime.ListInputItem]: @@ -143,7 +138,8 @@ def initial_text(self) -> str: sublime.set_timeout(self.attach_listener) return self.text - # Not supported on Python 3.3 API :-( + # This requires a fix for https://github.com/sublimehq/sublime_text/issues/6175 - it can manually be fixed in + # sublime_plugin.py def initial_selection(self) -> List[Tuple[int, int]]: pt = len(self.text) return [(pt, pt)]