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 2f8e682 commit eb83bd1Copy full SHA for eb83bd1
bpython/repl.py
@@ -653,6 +653,8 @@ def reevaluate(self):
653
self.buffer = []
654
self.scr.erase()
655
self.s_hist = []
656
+ # Set cursor position to -1 to prevent paren matching
657
+ self.cpos = -1
658
659
self.prompt(False)
660
@@ -671,9 +673,14 @@ def reevaluate(self):
671
673
self.prompt(more)
672
674
self.iy, self.ix = self.scr.getyx()
675
676
+ self.cpos = 0
677
+ indent = next_indentantion(self.s)
678
self.s = ''
679
self.scr.refresh()
680
681
+ for _ in xrange(indent):
682
+ self.tab()
683
+
684
self.evaluating = False
685
#map(self.push, self.history)
686
#^-- That's how simple this method was at first :(
0 commit comments