changeset 7757:4ff9a6fdde42

Load the default inputrc when calling read_readline_init_file()
author Rafael Laboissiere <rafael@debian.org>
date Mon, 05 May 2008 03:10:16 -0400
parents 45de7d8dac72
children 8e14a01ffe9f
files liboctave/ChangeLog liboctave/oct-rl-edit.c
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/ChangeLog	Sun May 04 23:46:35 2008 -0400
+++ b/liboctave/ChangeLog	Mon May 05 03:10:16 2008 -0400
@@ -1,3 +1,7 @@
+2008-05-05  Rafael Laboissiere  <rafael@debian.org>
+
+	* oct-rl-edit.c (octave_read_init_file): Simply call rl_read_init_file.
+
 2008-05-01  John W. Eaton  <jwe@octave.org>
 
 	* oct-shlib.h (octave_shlib::number_of_functions_loaded):
--- a/liboctave/oct-rl-edit.c	Sun May 04 23:46:35 2008 -0400
+++ b/liboctave/oct-rl-edit.c	Mon May 05 03:10:16 2008 -0400
@@ -194,10 +194,7 @@
 void
 octave_rl_read_init_file (const char *f)
 {
-  if (f && *f)
-    rl_read_init_file (f);
-  else
-    rl_re_read_init_file (0, 0);
+  rl_read_init_file (f);
 }
 
 int