From 089dcde7bf80ae207b28ece73f67453babb2646f 2014-06-17 23:19:35 From: unknown Date: 2014-06-17 23:19:35 Subject: [PATCH] Changed right arrow key movement function to mirror left arrow key movement. --- 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: