# HG changeset patch # User Torsten # Date 1425499288 -3600 # Node ID 26281bc8d23b990eb6599d55a7195dc59d7cf54c # Parent ded81845c597f8a86083088c6d7b1b0ff3d1ad22 fix non functioning ctrl-c when function executed from editor (bug #44397) * octave-cmd.cc (octave_cmd_eval::execute): use command-editor if function name is a valid identifier and Fsource if not diff -r ded81845c597 -r 26281bc8d23b libgui/src/octave-cmd.cc --- a/libgui/src/octave-cmd.cc Thu Feb 26 10:06:23 2015 +0100 +++ b/libgui/src/octave-cmd.cc Wed Mar 04 21:01:28 2015 +0100 @@ -66,15 +66,15 @@ // valid identifier: call as function with possibility to debug std::string path = _info.absolutePath ().toStdString (); if (octave_qt_link::file_in_path (file_path, path)) - Feval (ovl (function_name.toStdString ())); + command_editor::replace_line (function_name.toStdString ()); } else { // no valid identifier: use Fsource (), no debug possible Fsource (ovl (file_path)); + command_editor::replace_line (""); } - command_editor::replace_line (""); command_editor::set_initial_input (pending_input); command_editor::redisplay ();