summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-03 15:54:19 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-03 15:54:19 +0000
commit21ab6bc3fa7f586a4605778e30730df21ce0b691 (patch)
treeef2c05a325097cd84a9f32a0f95d4d5b8a52cfa4 /ext/readline
parenta3ace91f3e233a3f7b9db27e20d4496a9e0cfd24 (diff)
* ext/readline/readline.c (Init_readline): fix wrong condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/readline.c2
1 files changed, 1 insertions, 1 deletions
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
{