diff options
| author | blymn <blymn@NetBSD.org> | 2001-12-30 13:20:35 +0000 |
|---|---|---|
| committer | blymn <blymn@NetBSD.org> | 2001-12-30 13:20:35 +0000 |
| commit | d7893fc457b5678c1953d53bb6fe303545ce2b4a (patch) | |
| tree | 4f87f1f8e4b093f408483f3e610bd8b3a6447456 /lib | |
| parent | a6a57e7b6f03ed15ff587f94fcfe0c84cca55426 (diff) | |
Make newterm set the default screen if the old default screen was
ended, stops new vi crashing. Thanks to Aymeric Vincent for the fix.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libcurses/screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcurses/screen.c b/lib/libcurses/screen.c index 5fd1ffc4386..94115781135 100644 --- a/lib/libcurses/screen.c +++ b/lib/libcurses/screen.c @@ -1,4 +1,4 @@ -/* $NetBSD: screen.c,v 1.2 2001/12/27 10:48:15 blymn Exp $ */ +/* $NetBSD: screen.c,v 1.3 2001/12/30 13:20:35 blymn Exp $ */ /* * Copyright (c) 1981, 1993, 1994 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)screen.c 8.2 (blymn) 11/27/2001"; #else -__RCSID("$NetBSD: screen.c,v 1.2 2001/12/27 10:48:15 blymn Exp $"); +__RCSID("$NetBSD: screen.c,v 1.3 2001/12/30 13:20:35 blymn Exp $"); #endif #endif /* not lint */ @@ -183,7 +183,7 @@ newterm(char *type, FILE *outfd, FILE *infd) * bleh - it seems that apps expect the first newterm to set * up the curses screen.... emulate this. */ - if (_cursesi_screen == NULL) { + if (_cursesi_screen == NULL || _cursesi_screen->endwin) { __echoit = new_screen->echoit; __pfast = new_screen->pfast; __rawmode = new_screen->rawmode; |
