Skip to content
Snippets Groups Projects
Commit 10ff305b authored by andreas's avatar andreas
Browse files

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
parent 9d6e3ba7
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment