diff options
author | michaels <michaels@cvs.openbsd.org> | 1996-09-17 17:19:12 +0000 |
---|---|---|
committer | michaels <michaels@cvs.openbsd.org> | 1996-09-17 17:19:12 +0000 |
commit | fed417a38b95b13128c9588fd9f104da9b06bf41 (patch) | |
tree | 9591de9a563efff93cad28ba39dc4faf29aa4d92 /usr.bin/vi/cl/cl_term.c | |
parent | 8cb1a1f6c9600981e4080fa44207d08d8c080e8f (diff) |
nvi 1.76:
+ Fix bug where ^V didn't keep input mapping from happening.
+ Fix a core dump bug in the R command.
+ Give up on licensing: no more shareware, adware, whatever.
+ Fix cursor positioning bug for C, S and c$ in an empty file.
Diffstat (limited to 'usr.bin/vi/cl/cl_term.c')
-rw-r--r-- | usr.bin/vi/cl/cl_term.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/vi/cl/cl_term.c b/usr.bin/vi/cl/cl_term.c index 0e34628c597..e4007403870 100644 --- a/usr.bin/vi/cl/cl_term.c +++ b/usr.bin/vi/cl/cl_term.c @@ -10,7 +10,7 @@ #include "config.h" #ifndef lint -static const char sccsid[] = "@(#)cl_term.c 10.21 (Berkeley) 7/12/96"; +static const char sccsid[] = "@(#)cl_term.c 10.22 (Berkeley) 9/15/96"; #endif /* not lint */ #include <sys/types.h> @@ -183,8 +183,11 @@ cl_fmap(sp, stype, from, flen, to, tlen) CHAR_T *from, *to; size_t flen, tlen; { - EX_INIT_IGNORE(sp); - VI_INIT_IGNORE(sp); + /* Ignore until the screen is running, do the real work then. */ + if (F_ISSET(sp, SC_VI) && !F_ISSET(sp, SC_SCR_VI)) + return (0); + if (F_ISSET(sp, SC_EX) && !F_ISSET(sp, SC_SCR_EX)) + return (0); return (cl_pfmap(sp, stype, from, flen, to, tlen)); } |