File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1299,13 +1299,12 @@ def take_back_buffer_line(self):
12991299 self .cursor_offset = len (self .current_line )
13001300 self .display_buffer .pop ()
13011301 self .buffer .pop ()
1302+ self .history .pop ()
13021303
13031304 def prompt_undo (self ):
13041305 if self .buffer :
13051306 return self .take_back_buffer_line ()
13061307
1307- self .reevaluate ()
1308-
13091308 def prompt_for_undo ():
13101309 n = BpythonRepl .prompt_undo (self )
13111310 if n > 0 :
@@ -1334,7 +1333,7 @@ def reevaluate(self, insert_into_history=False):
13341333 self .reevaluating = True
13351334 sys .stdin = ReevaluateFakeStdin (self .stdin , self )
13361335 for line in old_logical_lines :
1337- self .current_line = line
1336+ self ._current_line = line
13381337 self .on_enter (insert_into_history = insert_into_history )
13391338 while self .fake_refresh_requested :
13401339 self .fake_refresh_requested = False
@@ -1352,7 +1351,7 @@ def reevaluate(self, insert_into_history=False):
13521351 self .inconsistent_history = True
13531352 logger .debug ('after rewind, self.inconsistent_history is %r' , self .inconsistent_history )
13541353
1355- self .cursor_offset = 0
1354+ self ._cursor_offset = 0
13561355 self .current_line = ''
13571356
13581357 def getstdout (self ):
You can’t perform that action at this time.
0 commit comments