diff options
Diffstat (limited to 'src/if_perl.xs')
-rw-r--r-- | src/if_perl.xs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/if_perl.xs b/src/if_perl.xs index d344938295..a589f8fd09 100644 --- a/src/if_perl.xs +++ b/src/if_perl.xs @@ -1233,9 +1233,8 @@ Delete(vimbuf, ...) if (u_savedel(lnum, 1) == OK) { ml_delete(lnum, 0); + check_cursor(); deleted_lines_mark(lnum, 1L); - if (aco.save_curbuf == curbuf) - check_cursor(); } /* restore curwin/curbuf and a few other things */ |