Fixed a bug: pair windows need window streams too, even though they don't print
authorfliep <fliep@ddfedd41-794f-dd11-ae45-00112f111e67>
Sun, 3 May 2009 17:38:35 +0000 (17:38 +0000)
committerfliep <fliep@ddfedd41-794f-dd11-ae45-00112f111e67>
Sun, 3 May 2009 17:38:35 +0000 (17:38 +0000)
src/window.c

index 6ae9f554341092dd1ff75d19d05431708d3829a7..053bb487c935abeb6cfa3ab6c2a2bb9e09a98d9f 100644 (file)
@@ -469,7 +469,8 @@ glk_window_open(winid_t split, glui32 method, glui32 size, glui32 wintype,
                pair->rock = 0;
                pair->type = wintype_Pair;
                pair->window_node = g_node_new(pair);
-               pair->window_stream = NULL;
+               /* You can print to a pair window's window stream, but it has no effect */
+               pair->window_stream = window_stream_new(pair);
                pair->echo_stream = NULL;
 
                /* The pair window must know about its children's split method */