diff src/pt-stmt.cc @ 7752:40c428ea3408

initial implementation of dbup and dbdown
author John W. Eaton <jwe@octave.org>
date Sun, 04 May 2008 03:42:19 -0400
parents a059b5679fbb
children 71f068b22fcc
line wrap: on
line diff
--- a/src/pt-stmt.cc
+++ b/src/pt-stmt.cc
@@ -88,7 +88,7 @@
 
   if (cmd || expr)
     {
-      if (in_function_or_script_body)
+      if (! (symbol_table::at_top_level () || Vdebugging))
 	octave_call_stack::set_statement (this);
 
       maybe_echo_code (in_function_or_script_body);