parent
9f242cb907
commit
013a9ff216
@ -148,8 +148,9 @@ class Command(misc.MinimalLineEditMixin, misc.CommandLineEdit):
|
|||||||
"""
|
"""
|
||||||
old_text = self.text()
|
old_text = self.text()
|
||||||
self.setText(text)
|
self.setText(text)
|
||||||
if old_text != text:
|
if old_text != text and len(old_text) == len(text):
|
||||||
# We want the completion to pop out here.
|
# We want the completion to pop out here, but the cursor position
|
||||||
|
# won't change, so we make sure we emit update_completion.
|
||||||
self.update_completion.emit(self.prefix(), self.split(),
|
self.update_completion.emit(self.prefix(), self.split(),
|
||||||
self._cursor_part)
|
self._cursor_part)
|
||||||
self.setFocus()
|
self.setFocus()
|
||||||
|
Loading…
Reference in New Issue
Block a user