From: Shugo Maeda Date: 2008-07-16T10:21:31+09:00 Subject: [ruby-dev:35528] Re: リリース前ToDoリスト 前田です。 そもそもこのlibeditの挙動ってバグじゃなくて仕様なんですかねえ。 2008/07/16 9:02 Nobuyoshi Nakada : > Index: ext/readline/readline.c > =================================================================== > --- ext/readline/readline.c (revision 18079) > +++ ext/readline/readline.c (working copy) > @@ -44,4 +44,11 @@ static ID completion_proc, completion_ca > #endif > > +#ifdef MAY_LIBEDIT > +static int history_base_offset; > +#define HISTORY_BASE (history_base-history_base_offset) > +#else > +#define HISTORY_BASE (history_base) > +#endif > + > static char **readline_attempted_completion_function(const char *text, > int start, int end); > @@ -769,4 +776,7 @@ Init_readline() > readline_s_get_filename_quote_characters, 0); > > +#ifdef MAY_LIBEDIT > + history_base_offset = history_base; > +#endif > history = rb_obj_alloc(rb_cObject); > rb_extend_object(history, rb_mEnumerable); 高尾君のパッチと大分趣が異なるような気がするのですが、どういう意図でしょうか。 HISTORY_BASEが定義されているだけで使われていないように見えます。 -- Shugo Maeda