Show More
@@ -88,9 +88,15 class HistoryConsoleWidget(ConsoleWidget): | |||||
88 | # to the line up to the cursor is if we are already |
|
88 | # to the line up to the cursor is if we are already | |
89 | # in a simple scroll (no prefix), |
|
89 | # in a simple scroll (no prefix), | |
90 | # and the cursor is at the end of the first line |
|
90 | # and the cursor is at the end of the first line | |
91 | first_line = input_buffer.split('\n', 1)[0] |
|
91 | ||
|
92 | # check if we are at the end of the first line | |||
|
93 | c = self._get_prompt_cursor() | |||
|
94 | current_pos = c.position() | |||
|
95 | c.movePosition(QtGui.QTextCursor.EndOfLine) | |||
|
96 | at_eol = (c.position() == current_pos) | |||
|
97 | ||||
92 | if self._history_index == len(self._history) or \ |
|
98 | if self._history_index == len(self._history) or \ | |
93 |
not (self._history_prefix == '' and |
|
99 | not (self._history_prefix == '' and at_eol) or \ | |
94 | not (self._get_edited_history(self._history_index)[:col] == input_buffer[:col]): |
|
100 | not (self._get_edited_history(self._history_index)[:col] == input_buffer[:col]): | |
95 | self._history_prefix = input_buffer[:col] |
|
101 | self._history_prefix = input_buffer[:col] | |
96 |
|
102 |
General Comments 0
You need to be logged in to leave comments.
Login now