summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>1999-11-15 21:26:39 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>1999-11-15 21:26:39 +0000
commit0e391fa9c7c115681009ad57c8c58248e23069ae (patch)
tree34c945715408af968d0ef0876d3ad4090d51c94b /bin
parentb1e532966746d4ea774c56b6f88b594fa32f54da (diff)
Quote metachars on expand_word too; ok millert@
Diffstat (limited to 'bin')
-rw-r--r--bin/ksh/vi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/vi.c b/bin/ksh/vi.c
index ad7b67b3802..89da8108ad7 100644
--- a/bin/ksh/vi.c
+++ b/bin/ksh/vi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vi.c,v 1.8 1999/11/14 22:04:02 d Exp $ */
+/* $OpenBSD: vi.c,v 1.9 1999/11/15 21:26:38 fgsch Exp $ */
/*
* vi command editing
@@ -1979,7 +1979,7 @@ expand_word(command)
del_range(start, end);
es->cursor = start;
for (i = 0; i < nwords; ) {
- if (putbuf(words[i], (int) strlen(words[i]), 0) != 0) {
+ if (x_escape(words[i], strlen(words[i]), x_vi_putbuf) != 0) {
rval = -1;
break;
}