aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2015-04-11 17:49:47 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2015-04-17 11:34:06 +0200
commitedb13791bd6eda43ab3816c7697530b378680e61 (patch)
tree5ec736cb0e7b1299a47ed9d51d45825538312d6a /src/nvim/edit.c
parent84b7a9ac34244a2d3f2356dbd9cebf1961281d42 (diff)
downloadrneovim-edb13791bd6eda43ab3816c7697530b378680e61.tar.gz
rneovim-edb13791bd6eda43ab3816c7697530b378680e61.tar.bz2
rneovim-edb13791bd6eda43ab3816c7697530b378680e61.zip
clipboard: simplify handling of of put in visual mode.
When clipboard=unnamed and put over visual selection, reduces number of provider calls from 6 to 2. Also add test.
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 26665aa84c..790967469b 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -6762,7 +6762,7 @@ static void ins_reg(void)
AppendCharToRedobuff(literally);
AppendCharToRedobuff(regname);
- do_put(regname, BACKWARD, 1L,
+ do_put(regname, NULL, BACKWARD, 1L,
(literally == Ctrl_P ? PUT_FIXINDENT : 0) | PUT_CURSEND);
} else if (insert_reg(regname, literally) == FAIL) {
vim_beep();