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 221659d commit a2d2a95Copy full SHA for a2d2a95
bpython/gtk_.py
@@ -561,9 +561,9 @@ def prompt(self, more):
561
else:
562
text = '>>> '
563
with self.editing:
564
- self.text_buffer.insert_with_tags_by_name(self.get_cursor_iter(),
565
- text, 'prompt')
566
- iter_ = self.move_cursor(len(text))
+ iter_ = self.get_cursor_iter()
+ self.text_buffer.insert_with_tags_by_name(iter_, text, 'prompt')
+ iter_.forward_chars(4)
567
mark = self.text_buffer.create_mark('line_start', iter_, True)
568
self.text_buffer.place_cursor(iter_)
569
self.scroll_to_mark(mark, 0.2)
0 commit comments