diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-07-14 13:37:25 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-07-14 13:37:25 +0000 |
commit | b1e130a5dfda09ae8a7ebe9ef8b2b31a7ea0072d (patch) | |
tree | 50a19d3ae6026d39eef62c7403512f3944b5de49 /bin/ksh/vi.c | |
parent | 9f95e00383dedac23c9855efa31e7556dd79de4c (diff) |
pdksh-5.2.14
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 0dfef7ea4f4..607c571d180 100644 --- a/bin/ksh/vi.c +++ b/bin/ksh/vi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vi.c,v 1.6 1999/01/08 20:25:03 millert Exp $ */ +/* $OpenBSD: vi.c,v 1.7 1999/07/14 13:37:24 millert Exp $ */ /* * vi command editing @@ -504,7 +504,7 @@ vi_hook(ch) state = VNORMAL; if (argc1 != 0) lastac = argc1; - switch (vi_cmd(lastac, lastcmd) != 0) { + switch (vi_cmd(lastac, lastcmd)) { case -1: vi_error(); refresh(0); @@ -526,8 +526,8 @@ vi_hook(ch) refresh(0); return 1; case 2: - /* back from a 'v' command - don't redraw the screen */ - return 1; + /* back from a 'v' command - can't happen */ + break; } break; |