r79048 - pyrepl/trunk/pyrepl/pyrepl

[email protected] Fri, 12 Nov 2010 22:56:26 +0100 (CET)
Newsgroups gmane.comp.python.pyrepl.checkins
Message-ID <[email protected]>
Author: antocuni
Date: Fri Nov 12 22:56:23 2010
New Revision: 79048

Modified:
   pyrepl/trunk/pyrepl/pyrepl/readline.py
Log:
always set the dirty flag when we press enter: this makes pyrepl to hide (if
it's visible) the completion menu before going to the next line



Modified: pyrepl/trunk/pyrepl/pyrepl/readline.py
==============================================================================
--- pyrepl/trunk/pyrepl/pyrepl/readline.py	(original)
+++ pyrepl/trunk/pyrepl/pyrepl/readline.py	Fri Nov 12 22:56:23 2010
@@ -136,6 +136,8 @@
 class maybe_accept(commands.Command):
     def do(self):
         r = self.reader
+        r.dirty = 1 # this is needed to hide the completion menu, if visible
+        #
         # if there are already several lines and the cursor
         # is not on the last one, always insert a new \n.
         text = r.get_unicode()