Issue #5785 has been updated by naruse (Yui NARUSE).

Status changed from Closed to Assigned

kouji (Kouji Takao) wrote:
> This issue was solved with changeset r35513.
> Tomoyuki, thank you for reporting this issue.
> Your contribution to Ruby is greatly appreciated.
> May Ruby be with you.
> 
> 
> ----------
> * ext/readline/readline.c (Readline.pre_input_hook)
>   (Readline.insert_text, Readline.redisplay): new function. An
>   original patch was created by nagachika. [Feature #5785]

??????????????以?????boron ???以??????????????????失?????????????????
+ <n>) Failure:
+test_modify_text_in_pre_input_hook(TestReadline) [/extdisk/chkbuild/chkbuild/tmp/build/<buildtime>/ruby/test/readline/test_readline.rb:386]:
+<"> hello world\n"> expected but was
+<"> ">.
http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20120501T132800Z.diff.html.gz

boron (Debian squeeze 6.0.4) ??? Readline 4.3 ???使??????????????????????????????
naruse@boron:~/ruby$ ./ruby -rreadline -e'Readline.input=open("version.h");Readline.readline("> ")'
> 
??????????????????????????????6.1 ???????????
% ./ruby -rreadline -e'Readline.input=open("/home/naruse/ruby/version.h");Readline.readline("> ")'
> #define RUBY_VERSION "2.0.0"
???????????表示??????????????????????
----------------------------------------
Feature #5785: Readline ??? pre_input_hook, insert_text, redisplay ???追??
https://bugs.ruby-lang.org/issues/5785#change-26450

Author: nagachika (Tomoyuki Chikanaga)
Status: Assigned
Priority: Normal
Assignee: kouji (Kouji Takao)
Category: ext
Target version: 2.0.0


??張????????? readline ???????????????????????????????????? rl_pre_input_hook, rl_insert_text, rl_redisplay ????????????????欲?????????????
????????????????????添????????????


-- 
http://bugs.ruby-lang.org/