diff src/symtab.cc @ 11319:f8e97e9a9301

avoid reparsing files after errors
author John W. Eaton <jwe@octave.org>
date Tue, 07 Dec 2010 15:30:17 -0500
parents c78247b664fc
children baeeb6bc6afe
line wrap: on
line diff
--- a/src/symtab.cc	Tue Dec 07 13:24:20 2010 -0500
+++ b/src/symtab.cc	Tue Dec 07 15:30:17 2010 -0500
@@ -575,7 +575,7 @@
 {
   octave_value retval = xfind (args, local_funcs);
 
-  if (! retval.is_defined ())
+  if (! (error_state || retval.is_defined ()))
     {
       // It is possible that the user created a file on the fly since
       // the last prompt or chdir, so try updating the load path and