Mercurial > octave
comparison src/input.cc @ 12109:10dcb8b64e4a release-3-2-x
keyboard: fix stack manipulation
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 25 Nov 2009 13:31:55 -0500 |
parents | c25e744c033d |
children |
comparison
equal
deleted
inserted
replaced
12108:d82388277620 | 12109:10dcb8b64e4a |
---|---|
954 saved_frame = octave_call_stack::current_frame (); | 954 saved_frame = octave_call_stack::current_frame (); |
955 unwind_protect::add (restore_frame); | 955 unwind_protect::add (restore_frame); |
956 unwind_protect_size_t (saved_frame); | 956 unwind_protect_size_t (saved_frame); |
957 | 957 |
958 // Skip the frame assigned to the keyboard function. | 958 // Skip the frame assigned to the keyboard function. |
959 octave_call_stack::goto_frame (1); | 959 octave_call_stack::goto_frame_relative (0, true); |
960 | 960 |
961 do_keyboard (args); | 961 do_keyboard (args); |
962 | 962 |
963 unwind_protect::run (); | 963 unwind_protect::run (); |
964 } | 964 } |