Mercurial > octave
changeset 27608:994db4a60d10
suppress extra prompt when running selection in editor (bug #57146)
* octave-qscintilla.cc (contextmenu_run): do not print a prompt for the
first line within the selected code
author | Torsten Lilge <ttl-octave@mailbox.org> |
---|---|
date | Fri, 01 Nov 2019 21:31:42 +0100 |
parents | 1397742ea0fe |
children | 51d26dd80828 |
files | libgui/src/m-editor/octave-qscintilla.cc |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/octave-qscintilla.cc Fri Nov 01 20:47:13 2019 +0100 +++ b/libgui/src/m-editor/octave-qscintilla.cc Fri Nov 01 21:31:42 2019 +0100 @@ -802,7 +802,11 @@ " cnt = oldcnt;\n" " if cnt < i\n" " cnt = i;\n" - " disp ([PS1, command]);\n" + " prompt = PS1;\n" + " if (i == 0)\n" + " prompt = '';\n" + " end\n" + " disp ([prompt, command]);\n" " if (history_save ())\n" " fid = fopen ('%1','w');\n" " if (fid != -1)\n"