diff options
author | ZyX <kp-pav@yandex.ru> | 2017-07-04 17:26:08 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-07-04 18:37:01 +0300 |
commit | 6552768c4faa1fcc81be49859815966123476e04 (patch) | |
tree | 469ec1dd568c6032d207135e1f94658e64f6e108 | |
parent | 605c8fb49cac3d9e8b3621fd4dfe55b882b85247 (diff) | |
download | rneovim-6552768c4faa1fcc81be49859815966123476e04.tar.gz rneovim-6552768c4faa1fcc81be49859815966123476e04.tar.bz2 rneovim-6552768c4faa1fcc81be49859815966123476e04.zip |
normal: Fix V728: excessive check
-rw-r--r-- | src/nvim/normal.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 39cd2c6631..d891c74fd2 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -1451,9 +1451,8 @@ void do_pending_operator(cmdarg_T *cap, int old_col, bool gui_yank) /* Never redo "zf" (define fold). */ if ((vim_strchr(p_cpo, CPO_YANK) != NULL || oap->op_type != OP_YANK) && ((!VIsual_active || oap->motion_force) - /* Also redo Operator-pending Visual mode mappings */ - || (VIsual_active && cap->cmdchar == ':' - && oap->op_type != OP_COLON)) + // Also redo Operator-pending Visual mode mappings. + || (cap->cmdchar == ':' && oap->op_type != OP_COLON)) && cap->cmdchar != 'D' && oap->op_type != OP_FOLD && oap->op_type != OP_FOLDOPEN |