summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2016-10-17 18:39:43 +0000
committerschwarze <schwarze@openbsd.org>2016-10-17 18:39:43 +0000
commit3a9be87c62af94eab608eec357330be4fc048639 (patch)
tree756c314bd77b0e537b6dad7c2c1580d0ed53148f
parentresolve code duplication in domove() for the commands: b B w W (diff)
downloadwireguard-openbsd-3a9be87c62af94eab608eec357330be4fc048639.tar.xz
wireguard-openbsd-3a9be87c62af94eab608eec357330be4fc048639.zip
simplify implementation of the '$' command, no functional change;
OK nicm@ tb@ czarkoff@
Diffstat (limited to '')
-rw-r--r--bin/ksh/vi.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/ksh/vi.c b/bin/ksh/vi.c
index bc6063cad88..8bfb334d145 100644
--- a/bin/ksh/vi.c
+++ b/bin/ksh/vi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vi.c,v 1.43 2016/10/17 17:59:57 schwarze Exp $ */
+/* $OpenBSD: vi.c,v 1.44 2016/10/17 18:39:43 schwarze Exp $ */
/*
* vi command editing
@@ -1256,10 +1256,7 @@ domove(int argcnt, const char *cmd, int sub)
break;
case '$':
- if (es->linelen != 0)
- ncursor = es->linelen;
- else
- ncursor = 0;
+ ncursor = es->linelen;
break;
case '%':