Mercurial > vim
diff src/ops.c @ 10494:1e700d72561d v8.0.0140
commit https://github.com/vim/vim/commit/f8eb9c51e5bbd10e59c9b1247f8f6c7f5b77ccd0
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 2 17:31:24 2017 +0100
patch 8.0.0140
Problem: Pasting inserted text in Visual mode does not work properly.
(Matthew Malcomson)
Solution: Stop Visual mode before stuffing the inserted text. (Christian
Brabandt, from neovim #5709)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 02 Jan 2017 17:45:04 +0100 |
parents | 99896ee0cac5 |
children | 94db9c08e206 |
line wrap: on
line diff
--- a/src/ops.c +++ b/src/ops.c @@ -3351,6 +3351,8 @@ do_put( */ if (regname == '.') { + if (VIsual_active) + stuffcharReadbuff(VIsual_mode); (void)stuff_inserted((dir == FORWARD ? (count == -1 ? 'o' : 'a') : (count == -1 ? 'O' : 'i')), count, FALSE); /* Putting the text is done later, so can't really move the cursor to