1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2017-01-02 17:31:24 +01:00
parent 5e1e6d265d
commit f8eb9c51e5
3 changed files with 17 additions and 5 deletions

View File

@@ -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