summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Valchev <pvalchev@cvs.openbsd.org>2001-09-19 02:31:32 +0000
committerPeter Valchev <pvalchev@cvs.openbsd.org>2001-09-19 02:31:32 +0000
commit79b60428c53c4b0ef3595ae6e8310d72be71f530 (patch)
treedeaf85bb670d29330d2a6a4e07263de95672d600
parent1501c694d44ad498ff38e17728b3efeb28b967f9 (diff)
Fix a bug where ^@ wouldn't behave as expected when reading an ex
command from vi. From NetBSD, ok millert
-rw-r--r--usr.bin/vi/vi/v_txt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/vi/vi/v_txt.c b/usr.bin/vi/vi/v_txt.c
index 6da3e9f2ad4..e5b497d4a22 100644
--- a/usr.bin/vi/vi/v_txt.c
+++ b/usr.bin/vi/vi/v_txt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v_txt.c,v 1.10 2001/01/29 01:58:53 niklas Exp $ */
+/* $OpenBSD: v_txt.c,v 1.11 2001/09/19 02:31:31 pvalchev Exp $ */
/*-
* Copyright (c) 1993, 1994
@@ -541,7 +541,7 @@ next: if (v_event_get(sp, evp, 0, ec_flags))
* This was not documented as far as I know, and is a great test of vi
* clones.
*/
- if (rcol == 0 && !LF_ISSET(TXT_REPLAY) && evp->e_c == '\0') {
+ if (LF_ISSET(TXT_RECORD) && rcol == 0 && evp->e_c == '\0') {
if (vip->rep == NULL)
goto done;