##// END OF EJS Templates
Fix paste bug where trailing newlines required a manual backspace.
Fernando Perez -
Show More
@@ -419,7 +419,9 b' class ConsoleWidget(Configurable, QtGui.QWidget):'
419 """
419 """
420 if self._control.textInteractionFlags() & QtCore.Qt.TextEditable:
420 if self._control.textInteractionFlags() & QtCore.Qt.TextEditable:
421 try:
421 try:
422 text = str(QtGui.QApplication.clipboard().text(mode))
422 # Remove any trailing newline, which confuses the GUI and
423 # forces the user to backspace.
424 text = str(QtGui.QApplication.clipboard().text(mode)).rstrip()
423 except UnicodeEncodeError:
425 except UnicodeEncodeError:
424 pass
426 pass
425 else:
427 else:
General Comments 0
You need to be logged in to leave comments. Login now