diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-07-27 21:13:01 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-07-27 21:13:01 +0000 |
commit | 87e25fdf80c7b45deee9c59389b51503e906d93b (patch) | |
tree | e477f86746245499e324e1d1e9ccada6aed035e9 /src/ops.c | |
parent | 231334e6efbf3a7f89183f8257e09492534a5f8c (diff) | |
download | vim-git-87e25fdf80c7b45deee9c59389b51503e906d93b.tar.gz |
updated for version 7.0117v7.0117
Diffstat (limited to 'src/ops.c')
-rw-r--r-- | src/ops.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1580,9 +1580,15 @@ op_delete(oap) && *ml_get(oap->start.lnum) == NUL) { /* - * It's an error to operate on an empty region, when 'E' inclucded in + * It's an error to operate on an empty region, when 'E' included in * 'cpoptions' (Vi compatible). */ +#ifdef FEAT_VIRTUALEDIT + if (virtual_op) + /* Virtual editing: Nothing gets deleted, but we set the '[ and '] + * marks as if it happened. */ + goto setmarks; +#endif if (vim_strchr(p_cpo, CPO_EMPTYREGION) != NULL) beep_flush(); return OK; @@ -1858,6 +1864,9 @@ op_delete(oap) msgmore(curbuf->b_ml.ml_line_count - old_lcount); +#ifdef FEAT_VIRTUALEDIT +setmarks: +#endif #ifdef FEAT_VISUAL if (oap->block_mode) { |