summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-11-21 14:21:40 +0100
committerBram Moolenaar <Bram@vim.org>2013-11-21 14:21:40 +0100
commitd07c6e1e82d4321da0fb11ff408aeaeb9fba1f68 (patch)
treea7ee9bdd28021399aaf7aab2af3e4aa04dc14472 /src/ex_docmd.c
parent1e42f7ac1624058f8097bc8d6406af21b600b8f5 (diff)
updated for version 7.4.098v7.4.098
Problem: When using ":'<,'>del" errors may be given for the visual line numbers being out of range. Solution: Reset Visual mode in ":del". (Lech Lorens)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 1c700d4735..ff5a6df9a6 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -8570,6 +8570,11 @@ ex_operators(eap)
beginline(BL_SOL | BL_FIX);
}
+#if defined(FEAT_VISUAL)
+ if (VIsual_active)
+ end_visual_mode();
+#endif
+
switch (eap->cmdidx)
{
case CMD_delete: