From b6fe3dae4de7002c2f58bc9cfb993033dff7927d Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 2 Apr 1998 10:03:54 +0000 Subject: call initialize git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/curses/curses.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ext/curses') diff --git a/ext/curses/curses.c b/ext/curses/curses.c index 7826450e8c..4c29202277 100644 --- a/ext/curses/curses.c +++ b/ext/curses/curses.c @@ -390,11 +390,15 @@ window_s_new(class, lines, cols, top, left) VALUE top; VALUE left; { + VALUE w; WINDOW *window; window = newwin(NUM2INT(lines), NUM2INT(cols), NUM2INT(top), NUM2INT(left)); wclear(window); - return prep_window(class, window); + w = prep_window(class, window); + obj_call_init(w); + + return w; } /* def subwin(lines, cols, top, left) */ -- cgit v1.2.3