[project @ 2007-09-19 20:45:13 by jwe]
author |
jwe |
date |
Wed, 19 Sep 2007 20:45:13 +0000 |
parents |
b84be419beab |
children |
dcd384e73cbe |
files |
liboctave/ChangeLog liboctave/cmd-edit.cc |
diffstat |
2 files changed, 4 insertions(+), 1 deletions(-)
[+]
|
line diff
--- a/liboctave/ChangeLog
+++ b/liboctave/ChangeLog
@@ -2,6 +2,8 @@
* cmd-edit.cc (command_editor::remove_startup_hook):
Fix cut-and-paste error.
+ (gnu_readline::set_startup_hook): Only set hook function if new
+ function is different from the current one.
2007-09-18 John W. Eaton <jwe@octave.org>
--- a/liboctave/cmd-edit.cc
+++ b/liboctave/cmd-edit.cc
@@ -403,7 +403,8 @@
{
previous_startup_hook = ::octave_rl_get_startup_hook ();
- ::octave_rl_set_startup_hook (f);
+ if (f != previous_startup_hook)
+ ::octave_rl_set_startup_hook (f);
}
void