comparison src/input.cc @ 9483:25c2e92ee03c

correctly skip frame assigned to keyboard function
author John W. Eaton <jwe@octave.org>
date Tue, 04 Aug 2009 12:59:16 -0400
parents fb22dd5d6242
children bbe033dcfe13
comparison
equal deleted inserted replaced
9482:fb22dd5d6242 9483:25c2e92ee03c
938 938
939 int nargin = args.length (); 939 int nargin = args.length ();
940 940
941 if (nargin == 0 || nargin == 1) 941 if (nargin == 0 || nargin == 1)
942 { 942 {
943 unwind_protect::add_fcn (octave_call_stack::restore_frame,
944 octave_call_stack::current_frame ());
945
946 // Skip the frame assigned to the keyboard function.
947 octave_call_stack::goto_frame_relative (0, true);
948
943 do_keyboard (args); 949 do_keyboard (args);
950
951 unwind_protect::run ();
944 } 952 }
945 else 953 else
946 print_usage (); 954 print_usage ();
947 955
948 return retval; 956 return retval;