changeset 26657:c54953342372

don't go through scope to find function in file editor * file-editor-tab.cc (file_editor_tab::exit_debug_and_clear): Search in symbol_table instead of looking in scope for function.
author John W. Eaton <jwe@octave.org>
date Sat, 26 Jan 2019 14:56:14 +0000
parents cf4792ae08a1
children cca0548f7b86
files libgui/src/m-editor/file-editor-tab.cc
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc	Sat Jan 26 14:51:29 2019 +0000
+++ b/libgui/src/m-editor/file-editor-tab.cc	Sat Jan 26 14:56:14 2019 +0000
@@ -2018,13 +2018,7 @@
     octave_value sym;
     try
       {
-        // FIXME: maybe we should be looking up functions directly
-        // instead of using a function that can also find variables?
-
-        symbol_scope curr_scope
-          = __get_current_scope__ ("file_editor_tab::exit_debug_and_clear");
-
-        sym = curr_scope.find (base_name);
+        sym = symtab.find_user_function (base_name);
       }
     catch (const execution_exception& e)
       {