X Tutup
Skip to content

Commit 22717d3

Browse files
fix bpython#448 without fixing the api
Really ought to have a method for changing both current_line and cursor_offset
1 parent b89705d commit 22717d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,12 +1281,12 @@ def take_back_buffer_line(self):
12811281
self.buffer.pop()
12821282

12831283
if not self.buffer:
1284-
self._set_cursor_offset(0, update_completion=False)
1284+
self._cursor_offset = 0
12851285
self.current_line = ''
12861286
else:
12871287
line = self.buffer[-1]
12881288
indent = self.predicted_indent(line)
1289-
self.current_line = indent * ' '
1289+
self._current_line = indent * ' '
12901290
self.cursor_offset = len(self.current_line)
12911291

12921292
def reevaluate(self, insert_into_history=False):

0 commit comments

Comments
 (0)
X Tutup