# HG changeset patch # User Torsten Lilge # Date 1594236251 -7200 # Node ID dc53b7b7af8b9fccb26ddb42355a9f6c7d5f07ca # Parent c318254c9f015514133501231bad44dbeae82810 remove block begin/end comments for running selected code lines (bug #57634) * octave-qscintilla.cc (contextmenu_run): do not add comment lines at the begin and end of the lines which are added to the console and the history diff -r c318254c9f01 -r dc53b7b7af8b libgui/src/m-editor/octave-qscintilla.cc --- a/libgui/src/m-editor/octave-qscintilla.cc Wed Jul 08 07:56:36 2020 -0400 +++ b/libgui/src/m-editor/octave-qscintilla.cc Wed Jul 08 21:24:11 2020 +0200 @@ -794,7 +794,7 @@ // Take selected code and extend it by commands for echoing each // evaluated line and for adding the line to the history (use script) QString code = QString (); - QString hist = QString ("### Begin selected code\n"); + QString hist = QString (); // Split contents into single lines and complete commands QStringList lines = selectedText ().split (QRegExp ("[\r\n]"), @@ -824,7 +824,6 @@ hist += line_history + "\n"; } - hist += "### End selected code\n"; octave_stdout << hist.toStdString () << "\n"; // Create tmp file with the code to be executed by the interpreter