aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r--src/nvim/ops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 3008af94f3..0bf338947b 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -1147,10 +1147,7 @@ static void stuffescaped(char_u *arg, int literally)
* stuff K_SPECIAL to get the effect of a special key when "literally"
* is TRUE. */
start = arg;
- while ((*arg >= ' '
- && *arg < DEL /* EBCDIC: chars above space are normal */
- )
- || (*arg == K_SPECIAL && !literally))
+ while ((*arg >= ' ' && *arg < DEL) || (*arg == K_SPECIAL && !literally))
++arg;
if (arg > start)
stuffReadbuffLen(start, (long)(arg - start));
@@ -2508,6 +2505,9 @@ int op_yank(oparg_T *oap, int deleting, int mess)
free(y_current->y_array);
y_current = curr;
}
+ if (curwin->w_p_rnu) {
+ redraw_later(SOME_VALID); // cursor moved to start
+ }
if (mess) { /* Display message about yank? */
if (yanktype == MCHAR
&& !oap->block_mode