changeset 29425:11a1e69e0035

maint: merge stable to default.
author Rik <rik@octave.org>
date Wed, 10 Mar 2021 11:46:50 -0800
parents e4904768ca48 (current diff) c003947a98a7 (diff)
children 7c78e4589466
files
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/external-editor-interface.cc	Tue Mar 09 22:39:33 2021 -0500
+++ b/libgui/src/external-editor-interface.cc	Wed Mar 10 11:46:50 2021 -0800
@@ -59,7 +59,8 @@
     editor.replace ("%f", file);
     editor.replace ("%l", QString::number (line));
 
-    QStringList arguments;
+    QStringList arguments = editor.split (QRegExp("\\s+"));
+    editor = arguments.takeFirst ();
 
     // start the process and check for success
     bool started_ok = QProcess::startDetached (editor, arguments);