diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-05-11 01:34:33 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-05-11 01:34:33 +0000 |
commit | 039a94478ee4f8b3154e99812223614e03ac186c (patch) | |
tree | 0e4a60fcf8f023cdd67f3e8132c6e5e6ced199dc /ext/readline | |
parent | 27e948fd458b06c3a018d46f04599a874f43fd92 (diff) |
.*/.+/.?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/readline')
-rw-r--r-- | ext/readline/readline.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 84b98f0d70..dbee8c7963 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -79,6 +79,8 @@ readline_attempted_completion_function(char *text, int start, int end) int i, matches; proc = rb_iv_get(mReadline, COMPLETION_PROC); + if (NIL_P(proc)) + return NULL; rl_attempted_completion_over = 1; case_fold = RTEST(rb_iv_get(mReadline, COMPLETION_CASE_FOLD)); ary = rb_funcall(proc, rb_intern("call"), 1, rb_str_new2(text)); |