Skip to content

Commit a96d6e3

Browse files
committed
Reset correct members
1 parent d0cdeb4 commit a96d6e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bpython/repl.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ def __init__(self):
234234
# which word is currently replacing the current word
235235
self.index = -1
236236
# cursor position in the original line
237-
self.orig_cursor_offset = None
237+
self.orig_cursor_offset = -1
238238
# original line (before match replacements)
239-
self.orig_line = None
239+
self.orig_line = ""
240240
# class describing the current type of completion
241241
self.completer = None
242242

@@ -327,8 +327,8 @@ def update(self, cursor_offset, current_line, matches, completer):
327327

328328
def clear(self):
329329
self.matches = []
330-
self.cursor_offset = -1
331-
self.current_line = ""
330+
self.orig_cursor_offset = -1
331+
self.orig_line = ""
332332
self.current_word = ""
333333
self.start = None
334334
self.end = None

0 commit comments

Comments
 (0)