Skip to content

Commit b1a9a3d

Browse files
author
Jędrzej Nowak
committed
after_command is using self.commands now
1 parent 843d8ed commit b1a9a3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyrepl/completing_reader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ def __init__(self, console):
229229

230230
def after_command(self, cmd):
231231
super(CompletingReader, self).after_command(cmd)
232-
if not isinstance(cmd, complete) and not isinstance(cmd, self_insert):
232+
if not isinstance(cmd, self.commands['complete']) \
233+
and not isinstance(cmd, self.commands['self_insert']):
233234
self.cmpltn_reset()
234235

235236
def calc_screen(self):

0 commit comments

Comments
 (0)