mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/readline/readline.c (readline_attempted_completion_function): fix compile error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7ef154f833
commit
107b713438
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Jan 10 12:13:56 2012 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||
|
||||
* ext/readline/readline.c (readline_attempted_completion_function):
|
||||
fix compile error.
|
||||
|
||||
Tue Jan 10 10:41:11 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/readline/readline.c (readline_attempted_completion_function):
|
||||
|
|
|
@ -667,7 +667,7 @@ readline_attempted_completion_function(const char *text, int start, int end)
|
|||
#endif
|
||||
case_fold = RTEST(rb_attr_get(mReadline, completion_case_fold));
|
||||
ary = rb_funcall(proc, rb_intern("call"), 1, rb_locale_str_new_cstr(text));
|
||||
if (!RB_TYPE_P(ary, T_ARRAY)) {
|
||||
if (!RB_TYPE_P(ary, T_ARRAY))
|
||||
ary = rb_Array(ary);
|
||||
matches = RARRAY_LEN(ary);
|
||||
if (matches == 0) return NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue