# HG changeset patch # User John W. Eaton # Date 1395871274 14400 # Node ID a87bdd302b1bbc27069a0b7c30b5973b37dfbd17 # Parent e7b347dcfc635b1daab33942eb2bb8e88bde275e set editor cursor on error line when debug_on_error is true (bug #41532) * input.cc (get_debug_input): If caller is defined, set curr_debug_line to the line number in the caller. diff -r e7b347dcfc63 -r a87bdd302b1b libinterp/corefcn/input.cc --- a/libinterp/corefcn/input.cc Sat Mar 22 13:40:46 2014 -0700 +++ b/libinterp/corefcn/input.cc Wed Mar 26 18:01:14 2014 -0400 @@ -510,8 +510,7 @@ octave_user_code *caller = octave_call_stack::caller_user_code (); std::string nm; - - int curr_debug_line = octave_call_stack::current_line (); + int curr_debug_line; bool have_file = false; @@ -523,9 +522,11 @@ nm = caller->name (); else have_file = true; + + curr_debug_line = octave_call_stack::caller_user_code_line (); } else - curr_debug_line = -1; + curr_debug_line = octave_call_stack::current_line (); std::ostringstream buf;