Mercurial > octave
comparison 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 |
comparison
equal
deleted
inserted
replaced
11318:d7ea780b036f | 11319:f8e97e9a9301 |
---|---|
573 symbol_table::fcn_info::fcn_info_rep::find (const octave_value_list& args, | 573 symbol_table::fcn_info::fcn_info_rep::find (const octave_value_list& args, |
574 bool local_funcs) | 574 bool local_funcs) |
575 { | 575 { |
576 octave_value retval = xfind (args, local_funcs); | 576 octave_value retval = xfind (args, local_funcs); |
577 | 577 |
578 if (! retval.is_defined ()) | 578 if (! (error_state || retval.is_defined ())) |
579 { | 579 { |
580 // It is possible that the user created a file on the fly since | 580 // It is possible that the user created a file on the fly since |
581 // the last prompt or chdir, so try updating the load path and | 581 // the last prompt or chdir, so try updating the load path and |
582 // searching again. | 582 // searching again. |
583 | 583 |