From 0e391fa9c7c115681009ad57c8c58248e23069ae Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" Date: Mon, 15 Nov 1999 21:26:39 +0000 Subject: Quote metachars on expand_word too; ok millert@ --- bin/ksh/vi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/ksh/vi.c') 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; } -- cgit v1.2.3