diff options
Diffstat (limited to 'src/evalbuffer.c')
-rw-r--r-- | src/evalbuffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/evalbuffer.c b/src/evalbuffer.c index 13f813ebd8..7de7271770 100644 --- a/src/evalbuffer.c +++ b/src/evalbuffer.c @@ -510,6 +510,7 @@ f_deletebufline(typval_T *argvars, typval_T *rettv) tabpage_T *tp; win_T *wp; int did_emsg_before = did_emsg; + int save_VIsual_active = VIsual_active; rettv->vval.v_number = 1; // FAIL by default @@ -538,6 +539,7 @@ f_deletebufline(typval_T *argvars, typval_T *rettv) if (!is_curbuf) { + VIsual_active = FALSE; curbuf_save = curbuf; curwin_save = curwin; curbuf = buf; @@ -582,6 +584,7 @@ f_deletebufline(typval_T *argvars, typval_T *rettv) { curbuf = curbuf_save; curwin = curwin_save; + VIsual_active = save_VIsual_active; } rettv->vval.v_number = 0; // OK } |