summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-08-12 19:59:19 +0000
committerBram Moolenaar <Bram@vim.org>2005-08-12 19:59:19 +0000
commit90cfdbe040320952e6b542d0633987f082b0f158 (patch)
tree2063faaaf71645ca7c2cb575ca612e3b664fa988 /src/ops.c
parente5b8e3d3c6139c53c8aea63471e7d0285ab748e0 (diff)
downloadvim-git-90cfdbe040320952e6b542d0633987f082b0f158.tar.gz
updated for version 7.0129v7.0129
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ops.c b/src/ops.c
index 6fc4f7514..8be36e841 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -1160,7 +1160,14 @@ do_execreg(regname, colon, addcr)
p = vim_strsave_escaped_ext(last_cmdline,
(char_u *)"\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037", Ctrl_V, FALSE);
if (p != NULL)
- retval = put_in_typebuf(p, TRUE);
+ {
+ /* When in Visual mode "'<,'>" will be prepended to the command.
+ * Remove it when it's already there. */
+ if (VIsual_active && STRNCMP(p, "'<,'>", 5) == 0)
+ retval = put_in_typebuf(p + 5, TRUE);
+ else
+ retval = put_in_typebuf(p, TRUE);
+ }
vim_free(p);
}
#endif