Mercurial > hg > octave-nkf
changeset 9482:fb22dd5d6242
fix stack manip in keyboard
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 04 Aug 2009 11:54:15 +0200 |
parents | a3ae7abaf659 |
children | 25c2e92ee03c |
files | src/ChangeLog src/input.cc |
diffstat | 2 files changed, 5 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2009-08-04 Jaroslav Hajek <highegg@gmail.com> + + * input.cc (Fkeyboard): Only call do_keyboard, don't fiddle with + stack. + 2009-08-03 Jaroslav Hajek <highegg@gmail.com> * DLD-FUNCTIONS/sub2ind.cc: New source.
--- a/src/input.cc +++ b/src/input.cc @@ -940,15 +940,7 @@ if (nargin == 0 || nargin == 1) { - unwind_protect::add_fcn (octave_call_stack::restore_frame, - octave_call_stack::current_frame ()); - - // Skip the frame assigned to the keyboard function. - octave_call_stack::goto_frame (1); - do_keyboard (args); - - unwind_protect::run (); } else print_usage ();