From 517bf99ddb79ca27b13491572a9439e982409abc Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 20 Aug 2019 20:03:21 +0200 Subject: API: nvim_put: Avoid "N more lines" message --- src/nvim/api/vim.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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: -- cgit