aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-08-06 15:25:17 +0300
committerZyX <kp-pav@yandex.ru>2017-08-06 15:25:17 +0300
commit474aa823dc5680b06dc84cd2ae248e58b6e83359 (patch)
tree1714a0878caecff1f3d9d69228c888728c824d15 /src/nvim/ex_docmd.c
parent36acfce4eac9dd131a39c4dbdff2836ab3e21d73 (diff)
parent5bec94652c9dd1d8cab260c4dd10e44d3f38f3cd (diff)
downloadrneovim-474aa823dc5680b06dc84cd2ae248e58b6e83359.tar.gz
rneovim-474aa823dc5680b06dc84cd2ae248e58b6e83359.tar.bz2
rneovim-474aa823dc5680b06dc84cd2ae248e58b6e83359.zip
Merge branch 'master' into colored-cmdline
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index d7821fc636..d1ce589db1 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -1665,11 +1665,15 @@ static char_u * do_one_cmd(char_u **cmdlinep,
ea.addr_count++;
if (*ea.cmd == ';') {
- if (!ea.skip)
+ if (!ea.skip) {
curwin->w_cursor.lnum = ea.line2;
- } else if (*ea.cmd != ',')
+ // Don't leave the cursor on an illegal line (caused by ';')
+ check_cursor_lnum();
+ }
+ } else if (*ea.cmd != ',') {
break;
- ++ea.cmd;
+ }
+ ea.cmd++;
}
/* One address given: set start and end lines */
@@ -1680,9 +1684,6 @@ static char_u * do_one_cmd(char_u **cmdlinep,
ea.addr_count = 0;
}
- /* Don't leave the cursor on an illegal line (caused by ';') */
- check_cursor_lnum();
-
/*
* 5. Parse the command.
*/
@@ -8321,7 +8322,7 @@ static void ex_tag_cmd(exarg_T *eap, char_u *name)
break;
default: /* ":tag" */
if (p_cst && *eap->arg != NUL) {
- do_cstag(eap);
+ ex_cstag(eap);
return;
}
cmd = DT_TAG;