diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-20 05:44:28 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-20 05:44:28 +0000 |
commit | 681754c29d4ae02983c61b467f764b036df8f656 (patch) | |
tree | d495b75016d409aea710cdebdcd2eede316b9752 /ext/readline | |
parent | bfc94fde253a255d329cfdec32398f4154be225f (diff) | |
download | ruby-681754c29d4ae02983c61b467f764b036df8f656.tar.gz |
Fix: change terminal's size on Widows when the window size is changed
* ext/readline/readline.c (readline_get): add rl_prep_terminal(1).
insited by jitte [ruby-list:43546]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 20630d30ec..25b8013177 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -144,6 +144,7 @@ readline_event(void) static VALUE readline_get(VALUE prompt) { + rl_prep_terminal(1); return (VALUE)readline((char *)prompt); } |