aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/normal.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-03-19 23:45:11 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-03-19 23:52:17 +0100
commit2f54d6927cc02484b528a5e8b25b64c8d6580ddd (patch)
treeb9cebfa51815137e8c26b9d3581106e551aba81d /src/nvim/normal.c
parentdb128974fcbd5702ca724610590a5dafa2e87712 (diff)
downloadrneovim-2f54d6927cc02484b528a5e8b25b64c8d6580ddd.tar.gz
rneovim-2f54d6927cc02484b528a5e8b25b64c8d6580ddd.tar.bz2
rneovim-2f54d6927cc02484b528a5e8b25b64c8d6580ddd.zip
test/legacy: fix test_normal.vim
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r--src/nvim/normal.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c
index 82fa9f5f97..7188e13436 100644
--- a/src/nvim/normal.c
+++ b/src/nvim/normal.c
@@ -4766,10 +4766,8 @@ static void nv_ident(cmdarg_T *cap)
}
}
- /*
- * Now grab the chars in the identifier
- */
- if (cmdchar == 'K' && !kp_ex) {
+ // Now grab the chars in the identifier
+ if (cmdchar == 'K') {
ptr = vim_strnsave(ptr, n);
if (kp_ex) {
// Escape the argument properly for an Ex command