aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-06-16 11:55:40 +0200
committerGitHub <noreply@github.com>2018-06-16 11:55:40 +0200
commit4c3c04d03cc0cdbccfb71b534fc3cd238fd3974d (patch)
tree22e59e2f57c824369bd8d5f0d561f42303886229 /src/nvim/ex_cmds.c
parentc990d65c37ded9ad9f4002a6eb6ec36aa29b4fe3 (diff)
parentf419f914fc52fc86216b59e8ffa6fd510f79c6cd (diff)
downloadrneovim-4c3c04d03cc0cdbccfb71b534fc3cd238fd3974d.tar.gz
rneovim-4c3c04d03cc0cdbccfb71b534fc3cd238fd3974d.tar.bz2
rneovim-4c3c04d03cc0cdbccfb71b534fc3cd238fd3974d.zip
Merge #8526 from janlazo/vim-8.0.0451
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 4e0bdb777c..98eda8dcb8 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -3269,9 +3269,10 @@ static buf_T *do_sub(exarg_T *eap, proftime_T timeout,
*cmd++ = NUL; /* replace it with a NUL */
break;
}
- if (cmd[0] == '\\' && cmd[1] != 0) /* skip escaped characters */
- ++cmd;
- mb_ptr_adv(cmd);
+ if (cmd[0] == '\\' && cmd[1] != 0) { // skip escaped characters
+ cmd++;
+ }
+ MB_PTR_ADV(cmd);
}
if (!eap->skip && !preview) {