Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a11126e

Browse files
committed
Merge pull request #6742 from blink1073/qtconsole-fix-complete-reply
QtConsole Completion Fix - Do not force the "end" to be later than the "start"
2 parents 4bc2ed9 + 282d079 commit a11126e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

IPython/qt/console/ipython_widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def _handle_complete_reply(self, rep):
152152
end = content['cursor_end']
153153

154154
start = max(start, 0)
155-
end = max(end, start + 1)
155+
end = max(end, start)
156156

157157
# Move the control's cursor to the desired end point
158158
cursor_pos = self._get_input_buffer_cursor_pos()

0 commit comments

Comments
 (0)