Mercurial > octave
changeset 28544:dc53b7b7af8b stable
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
author | Torsten Lilge <ttl-octave@mailbox.org> |
---|---|
date | Wed, 08 Jul 2020 21:24:11 +0200 |
parents | c318254c9f01 |
children | 3dae50cf0bc5 |
files | libgui/src/m-editor/octave-qscintilla.cc |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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