summaryrefslogtreecommitdiff
path: root/bin/ksh/vi.c
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-11-21 07:59:41 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-11-21 07:59:41 +0000
commite7ba2dde1be71475ca9e13475a5da793e6e71492 (patch)
tree92fc7d77b93be740bc71187341a0164e93242b61 /bin/ksh/vi.c
parent348b1798b3067a1b3e79d9460d7f51a07ccd44ef (diff)
Update to 5.2.12.
Diffstat (limited to 'bin/ksh/vi.c')
-rw-r--r--bin/ksh/vi.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/ksh/vi.c b/bin/ksh/vi.c
index 4fc7b75c511..4410276a68e 100644
--- a/bin/ksh/vi.c
+++ b/bin/ksh/vi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vi.c,v 1.2 1996/08/19 20:09:04 downsj Exp $ */
+/* $OpenBSD: vi.c,v 1.3 1996/11/21 07:59:37 downsj Exp $ */
/*
* vi command editing
@@ -1137,7 +1137,8 @@ vi_cmd(argcnt, cmd)
case Ctrl('i'): /* Nonstandard vi/ksh */
if (!Flag(FVITABCOMPLETE))
return -1;
- /* FALLTHROUGH */
+ complete_word(1, argcnt);
+ break;
case Ctrl('['): /* some annoying at&t ksh's */
if (!Flag(FVIESCCOMPLETE))
@@ -1843,11 +1844,11 @@ display(wb1, wb2, leftside)
if (ch < ' ' || ch == 0x7f) {
*twb1++ = '^';
if (++col < winwidth) {
- *twb1++ = es->cbuf[cur] ^ '@';
+ *twb1++ = ch ^ '@';
col++;
}
} else {
- *twb1++ = es->cbuf[cur];
+ *twb1++ = ch;
col++;
}
}