We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 551c03c commit f146dfaCopy full SHA for f146dfa
1 file changed
Lib/_pyrepl/vi_commands.py
@@ -417,7 +417,7 @@ def do(self) -> None:
417
if not pending_char or r.pos >= len(r.buffer):
418
return
419
r.buffer[r.pos] = pending_char
420
- r.dirty = True
+ r.invalidate_buffer(r.pos)
421
422
class vi_replace_cancel(Command):
423
"""Cancel pending replace operation."""
@@ -440,4 +440,4 @@ def do(self) -> None:
440
state = r.undo_stack.pop()
441
r.buffer[:] = state.buffer_snapshot
442
r.pos = state.pos_snapshot
443
+ r.invalidate_buffer(0)
0 commit comments