diff --git a/pyvim/editor.py b/pyvim/editor.py index 26d5716..f84fd13 100644 --- a/pyvim/editor.py +++ b/pyvim/editor.py @@ -350,7 +350,7 @@ def append_edit_command(self, key_event): logger.debug(f"append_edit_command():{self.application.vi_state.input_mode}:{key_event}") logger.debug(self._last_edit_command) # 'dw' finish edit command. If there is another suitable line, I would like to move it. - if [k.data for k in self._last_edit_command] == ["d", "w"]: + if [not isinstance(k, tuple) and k.data for k in self._last_edit_command] == ["d", "w"]: self.finish_edit_command() def append_edit_completion(self, start, text):