diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-07-04 23:50:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-04 23:50:57 +0200 |
commit | 69f0847ccc79acabb1cad5b1b54c906973946d81 (patch) | |
tree | f44ee09707eacbe75c8e3ff1be4ad53e0f5080ef /src/nvim/normal.c | |
parent | 1b70a1da0438018475a73e23015421b2212b34df (diff) | |
parent | ce30998221a53e208a6a68b4b0a3f76db9a5eac3 (diff) | |
download | rneovim-69f0847ccc79acabb1cad5b1b54c906973946d81.tar.gz rneovim-69f0847ccc79acabb1cad5b1b54c906973946d81.tar.bz2 rneovim-69f0847ccc79acabb1cad5b1b54c906973946d81.zip |
Merge #6959 from ZyX-I/pvs-fixes
Diffstat (limited to 'src/nvim/normal.c')
-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 |