X Tutup
Skip to content

Commit 34d60b2

Browse files
fix persistant completion window bug
1 parent f361657 commit 34d60b2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def on_enter(self, insert_into_history=True):
368368
self.rl_history.last()
369369
self.history.append(self.current_line)
370370
line = self.current_line
371-
#self.current_line = ''
371+
self.current_line = ''
372372
self.push(line, insert_into_history=insert_into_history)
373373

374374
def on_tab(self, back=False):

bpython/repl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import codecs
2727
import errno
2828
import inspect
29+
import logging
2930
import os
3031
import pydoc
3132
import shlex
@@ -625,6 +626,7 @@ def complete(self, tab=False):
625626
self.config.autocomplete_mode if hasattr(self.config, 'autocomplete_mode') else autocomplete.SIMPLE,
626627
self.config.complete_magic_methods)
627628
#TODO implement completer.shown_before_tab == False (filenames shouldn't fill screen)
629+
logging.debug('complete called on %r: using completer %r on matches %r', self.current_line, completer, matches)
628630

629631
if (matches is None # no completion is relevant
630632
or len(matches) == 0): # a target for completion was found

0 commit comments

Comments
 (0)
X Tutup