summaryrefslogtreecommitdiff
path: root/usr.bin/vi/ex/ex_shell.c
diff options
context:
space:
mode:
authormichaels <michaels@cvs.openbsd.org>1996-08-16 17:58:49 +0000
committermichaels <michaels@cvs.openbsd.org>1996-08-16 17:58:49 +0000
commit418c0bbade1dcb322b7abdbed4064993de8086c2 (patch)
tree4bad4d39a1f432f68cae3d673074f4b724aba879 /usr.bin/vi/ex/ex_shell.c
parent445816164da4c953591f89549fdd9bc8825aa8c8 (diff)
nvi 1.73
Diffstat (limited to 'usr.bin/vi/ex/ex_shell.c')
-rw-r--r--usr.bin/vi/ex/ex_shell.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.bin/vi/ex/ex_shell.c b/usr.bin/vi/ex/ex_shell.c
index 070d6d54706..5848baee0b3 100644
--- a/usr.bin/vi/ex/ex_shell.c
+++ b/usr.bin/vi/ex/ex_shell.c
@@ -10,7 +10,7 @@
#include "config.h"
#ifndef lint
-static const char sccsid[] = "@(#)ex_shell.c 10.35 (Berkeley) 6/28/96";
+static const char sccsid[] = "@(#)ex_shell.c 10.37 (Berkeley) 8/11/96";
#endif /* not lint */
#include <sys/param.h>
@@ -55,9 +55,15 @@ ex_shell(sp, cmdp)
*/
(void)snprintf(buf, sizeof(buf), "%s -i", O_STR(sp, O_SHELL));
- /* If we're stil in a vi screen, move out explicitly. */
+ /* Restore the window name. */
+ (void)cl_rename(sp, NULL, 0);
+
+ /* If we're still in a vi screen, move out explicitly. */
rval = ex_exec_proc(sp, cmdp, buf, NULL, !F_ISSET(sp, SC_SCR_EXWROTE));
+ /* Set the window name. */
+ (void)cl_rename(sp, sp->frp->name, 1);
+
/*
* !!!
* Historically, vi didn't require a continue message after the