Mercurial > octave-nkf
diff src/input.cc @ 6913:f779c83d6ccf
[project @ 2007-09-18 18:58:12 by jwe]
author | jwe |
---|---|
date | Tue, 18 Sep 2007 18:58:13 +0000 |
parents | bf4bdc21dc8d |
children | 6bbf56a9718a |
line wrap: on
line diff
--- a/src/input.cc Tue Sep 18 15:26:08 2007 +0000 +++ b/src/input.cc Tue Sep 18 18:58:13 2007 +0000 @@ -1101,7 +1101,7 @@ hook_fcn = std::string (); user_data = octave_value (); - command_editor::set_event_hook (0); + command_editor::remove_event_hook (input_event_hook); } return 0; @@ -1148,11 +1148,11 @@ return retval; } - command_editor::set_event_hook (input_event_hook); + command_editor::add_event_hook (input_event_hook); } if (nargin == 0) - command_editor::set_event_hook (0); + command_editor::remove_event_hook (input_event_hook); retval(1) = user_data; retval(0) = hook_fcn;