From 1b5f53ca9574611273282dfbed91021d75242335 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 6 Jul 2022 13:25:22 +0800 Subject: vim-patch:7.4.212 Problem: Now that the +visual feature is always enabled the #ifdefs for it are not useful. Solution: Remove the checks for FEAT_VISUAL. https://github.com/vim/vim/commit/f7ff6e85e8a4e84cff023f5db4b66ef85986605a --- src/nvim/ops.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nvim/ops.c') diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 2f29e94ff1..21ab26898e 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -6627,9 +6627,7 @@ void do_pending_operator(cmdarg_T *cap, int old_col, bool gui_yank) switch (oap->op_type) { case OP_LSHIFT: case OP_RSHIFT: - op_shift(oap, true, - oap->is_VIsual ? (int)cap->count1 : - 1); + op_shift(oap, true, oap->is_VIsual ? (int)cap->count1 : 1); auto_format(false, true); break; -- cgit