X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/25a495d27257685a605139d1a2f1affa6a07e907..74bf1c32a23e89f7364f28acf0f35fce18b102a1:/usr/src/usr.bin/window/cmd1.c diff --git a/usr/src/usr.bin/window/cmd1.c b/usr/src/usr.bin/window/cmd1.c index a0c9041ff4..f04a5874bc 100644 --- a/usr/src/usr.bin/window/cmd1.c +++ b/usr/src/usr.bin/window/cmd1.c @@ -1,5 +1,5 @@ #ifndef lint -static char *sccsid = "@(#)cmd1.c 3.12 83/09/15"; +static char *sccsid = "@(#)cmd1.c 3.13 83/11/22"; #endif #include "defs.h" @@ -65,7 +65,8 @@ c_window() if (!terse) (void) wwputs("\r\n", cmdwin); wwcurtowin(cmdwin); - (void) openwin(id, row, col, xrow-row+1, xcol-col+1, nbufline); + (void) openwin(id, row, col, xrow-row+1, xcol-col+1, nbufline, + (char *) 0); } findid() @@ -142,8 +143,9 @@ int maxrow, maxcol; } struct ww * -openwin(id, row, col, nrow, ncol, nline) +openwin(id, row, col, nrow, ncol, nline, label) int id, nrow, ncol, row, col; +char *label; { register struct ww *w; @@ -163,6 +165,8 @@ int id, nrow, ncol, row, col; w->ww_hasframe = 1; w->ww_altpos.r = 1; w->ww_altpos.c = 0; + if (label != 0 && setlabel(w, label) < 0) + error("No memory for label."); wwcursor(w, 1); wwadd(w, framewin); selwin = w;