diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-09-10 22:48:59 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-09-10 22:48:59 +0000 |
commit | fe83e794ba53f6cbab7db5985780aded1f627a76 (patch) | |
tree | 0410bd91074b9631663633f02b62f4d0c3e2bd2b /bin/ksh/vi.c | |
parent | 959679b1367829040ac5ef9f4700a2f7fde194e2 (diff) |
Replace newline and space defines by "\n" and " " directly, from Michael
McConville. ok millert
Diffstat (limited to 'bin/ksh/vi.c')
-rw-r--r-- | bin/ksh/vi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ksh/vi.c b/bin/ksh/vi.c index 9c53fc2d50f..89a12d1835a 100644 --- a/bin/ksh/vi.c +++ b/bin/ksh/vi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vi.c,v 1.29 2015/09/01 13:12:31 tedu Exp $ */ +/* $OpenBSD: vi.c,v 1.30 2015/09/10 22:48:58 nicm Exp $ */ /* * vi command editing @@ -1067,7 +1067,7 @@ vi_cmd(int argcnt, const char *cmd) argcnt++; p++; } - if (putbuf(space, 1, 0) != 0) + if (putbuf(" ", 1, 0) != 0) argcnt = -1; else if (putbuf(sp, argcnt, 0) != 0) argcnt = -1; @@ -1930,7 +1930,7 @@ expand_word(int command) rval = -1; break; } - if (++i < nwords && putbuf(space, 1, 0) != 0) { + if (++i < nwords && putbuf(" ", 1, 0) != 0) { rval = -1; break; } @@ -2038,7 +2038,7 @@ complete_word(int command, int count) /* If not a directory, add a space to the end... */ if (match_len > 0 && match[match_len - 1] != '/') - rval = putbuf(space, 1, 0); + rval = putbuf(" ", 1, 0); } x_free_words(nwords, words); |