aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-08-20 20:03:21 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-08-27 21:19:10 +0200
commit517bf99ddb79ca27b13491572a9439e982409abc (patch)
tree954643ce3e1f3fae1668210ec19f471670578be3
parent0221a9220a2ec0691a7139c8362aba80d1f3b8ee (diff)
downloadrneovim-517bf99ddb79ca27b13491572a9439e982409abc.tar.gz
rneovim-517bf99ddb79ca27b13491572a9439e982409abc.tar.bz2
rneovim-517bf99ddb79ca27b13491572a9439e982409abc.zip
API: nvim_put: Avoid "N more lines" message
-rw-r--r--src/nvim/api/vim.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c
index 9ba855b61f..900c3bab58 100644
--- a/src/nvim/api/vim.c
+++ b/src/nvim/api/vim.c
@@ -1256,7 +1256,9 @@ void nvim_put(ArrayOf(String) lines, String type, Boolean direction,
// TODO: fix VIsual when cursor is before, or emulate the delete as well
flags |= lt(VIsual, curwin->w_cursor) ? PUT_CURSEND : 0;
}
+ msg_silent++; // Avoid "N more lines" message.
do_put(0, reg, direction ? BACKWARD : FORWARD, 1, flags);
+ msg_silent--;
VIsual_active = VIsual_was_active;
cleanup: