diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-02-20 19:45:52 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-02-20 19:45:52 +0000 |
commit | 2a4c9bf1b5e3d38e4f3187fbe32cfd8757795801 (patch) | |
tree | c50e156ff7e1a56b5f57ccd1b4a3c5640dcd6b55 /usr.bin/vi/ex/ex.c | |
parent | 9a15b4d73801c21ea2542a548ef4a4eb5931a623 (diff) |
Fix vi recovery mode.
From trondd, tested by various
ok afresh1
Diffstat (limited to 'usr.bin/vi/ex/ex.c')
-rw-r--r-- | usr.bin/vi/ex/ex.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/vi/ex/ex.c b/usr.bin/vi/ex/ex.c index 912768e88d2..357aa860728 100644 --- a/usr.bin/vi/ex/ex.c +++ b/usr.bin/vi/ex/ex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ex.c,v 1.21 2016/03/19 00:21:28 mestre Exp $ */ +/* $OpenBSD: ex.c,v 1.22 2022/02/20 19:45:51 tb Exp $ */ /*- * Copyright (c) 1992, 1993, 1994 @@ -133,6 +133,10 @@ ex(SCR **spp) msgq(sp, M_ERR, "Interrupted"); } + /* Sync recovery if changes were made. */ + if (F_ISSET(sp->ep, F_RCV_SYNC)) + rcv_sync(sp, 0); + /* * If the last command caused a restart, or switched screens * or into vi, return. |