diff options
Diffstat (limited to 'ext/readline')
-rw-r--r-- | ext/readline/readline.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c index b6b46119ac..97b13b64d9 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -1248,6 +1248,7 @@ readline_s_get_special_prefixes(VALUE self) { VALUE str; rb_secure(4); + if (rl_special_prefixes == NULL) return Qnil; str = rb_ivar_get(mReadline, id_special_prefixes); if (!NIL_P(str)) { str = rb_str_dup_frozen(str); |