diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/readline/readline.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Fri Nov 4 00:53:35 2011 NARUSE, Yui <naruse@ruby-lang.org> + + * ext/readline/readline.c (Init_readline): fix wrong condition. + Thu Nov 3 23:53:04 2011 NAKAMURA Usaku <usa@ruby-lang.org> * encoding.c (rb_locale_charmap): ignore calling nl_langinfo_codeset() diff --git a/ext/readline/readline.c b/ext/readline/readline.c index c035b67c54..e34ee1ef14 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -1613,7 +1613,7 @@ Init_readline() if (history_get(history_get_offset_func(0)) == NULL) { history_get_offset_func = history_get_offset_0; } -#if !defined HAVE_CLEAR_HISTORY +#if defined HAVE_CLEAR_HISTORY clear_history(); #else { |