summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--ext/readline/readline.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 631f352..557115c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 c035b67..e34ee1e 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
{