summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/readline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index ffa4a5dc77e..6481e4854f1 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -620,6 +620,8 @@ hist_each(VALUE self)
HIST_ENTRY *entry;
int i;
+ RETURN_ENUMERATOR(self, 0, 0);
+
rb_secure(4);
for (i = 0; i < history_length; i++) {
entry = history_get(history_base + i);