Set cursor part correctly if the cursor is at the end.
This commit is contained in:
parent
f689c89316
commit
a86279df5e
@ -144,6 +144,12 @@ class Command(misc.MinimalLineEditMixin, misc.CommandLineEdit):
|
|||||||
log.completion.vdebug(
|
log.completion.vdebug(
|
||||||
"Removing len({!r}) -> {} from cursor_pos -> {}".format(
|
"Removing len({!r}) -> {} from cursor_pos -> {}".format(
|
||||||
part, len(part), cursor_pos))
|
part, len(part), cursor_pos))
|
||||||
|
else:
|
||||||
|
self._cursor_part = i
|
||||||
|
if spaces:
|
||||||
|
self._empty_item_idx = i
|
||||||
|
else:
|
||||||
|
self._empty_item_idx = None
|
||||||
log.completion.debug("cursor_part {}, spaces {}".format(
|
log.completion.debug("cursor_part {}, spaces {}".format(
|
||||||
self._cursor_part, spaces))
|
self._cursor_part, spaces))
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user