From 7d9ea18dfaeb900af9a089d50461babbb7af7741 2014-06-26 19:48:37 From: Min RK Date: 2014-06-26 19:48:37 Subject: [PATCH] Merge pull request #6005 from schodge/console_cursor_change Changed right arrow key movement function to mirror left arrow key closes #5926 --- diff --git a/IPython/qt/console/console_widget.py b/IPython/qt/console/console_widget.py index 13f018b..6424c91 100644 --- a/IPython/qt/console/console_widget.py +++ b/IPython/qt/console/console_widget.py @@ -1364,13 +1364,12 @@ class ConsoleWidget(MetaQObjectHasTraits('NewBase', (LoggingConfigurable, QtGui. elif key == QtCore.Qt.Key_Right: original_block_number = cursor.blockNumber() - cursor.movePosition(QtGui.QTextCursor.Right, + self._control.moveCursor(QtGui.QTextCursor.Right, mode=anchormode) if cursor.blockNumber() != original_block_number: - cursor.movePosition(QtGui.QTextCursor.Right, + self._control.moveCursor(QtGui.QTextCursor.Right, n=len(self._continuation_prompt), mode=anchormode) - self._set_cursor(cursor) intercepted = True elif key == QtCore.Qt.Key_Home: