summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-20 05:44:28 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-20 05:44:28 +0000
commit681754c29d4ae02983c61b467f764b036df8f656 (patch)
treed495b75016d409aea710cdebdcd2eede316b9752 /ext/readline
parentbfc94fde253a255d329cfdec32398f4154be225f (diff)
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index 20630d3..25b8013 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);
}