Skip to content

Commit

Permalink
fix error when completion
Browse files Browse the repository at this point in the history
  • Loading branch information
nakagami committed Oct 6, 2024
1 parent 559545d commit a94cfc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyvim/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a94cfc1

Please sign in to comment.