From 10ff305b1ef68ebe1c65f8cb2320dc84f2c4f3f7 Mon Sep 17 00:00:00 2001 From: andreas <andreas@5a81b35b-ba03-0410-adc8-b2c5c5119f08> Date: Fri, 4 Jun 2010 20:52:31 +0000 Subject: [PATCH] fix for CTRL+Enter in new shell git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/branches/new_shell@2344 5a81b35b-ba03-0410-adc8-b2c5c5119f08 --- modules/gui/src/python_shell/python_shell_widget.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gui/src/python_shell/python_shell_widget.cc b/modules/gui/src/python_shell/python_shell_widget.cc index 5a86eb418..efc07cbc3 100644 --- a/modules/gui/src/python_shell/python_shell_widget.cc +++ b/modules/gui/src/python_shell/python_shell_widget.cc @@ -612,6 +612,7 @@ QString PythonShellWidget::GetCommand() QTextCursor cursor(block_edit_start_); cursor.movePosition(QTextCursor::End, QTextCursor::KeepAnchor); QString text= cursor.selectedText(); + text.replace(QChar::LineSeparator,"\n"); text.replace(QChar::ParagraphSeparator,"\n"); return text; } -- GitLab