Don't update completion twice
This commit is contained in:
parent
b72306ffe6
commit
5c143da40b
@ -252,9 +252,9 @@ class Command(MinimalLineEdit):
|
|||||||
"""Slot for textEdited. Stop history and update completion."""
|
"""Slot for textEdited. Stop history and update completion."""
|
||||||
self.history.stop()
|
self.history.stop()
|
||||||
self._empty_item_idx = None
|
self._empty_item_idx = None
|
||||||
self._update_cursor_part()
|
# We also want to update the cursor part and emit update_completion
|
||||||
self.update_completion.emit(self.prefix, self.parts,
|
# here, but that's already done for us by cursorPositionChanged
|
||||||
self.cursor_part)
|
# anyways, so we don't need to do it twice.
|
||||||
|
|
||||||
def on_mode_left(self, mode):
|
def on_mode_left(self, mode):
|
||||||
"""Clear up when ommand mode was left.
|
"""Clear up when ommand mode was left.
|
||||||
|
Loading…
Reference in New Issue
Block a user