From 09f6b1f2cbfd610e52d26adcca466d1a9a08f4d2 Mon Sep 17 00:00:00 2001 From: Chen Mulong Date: Tue, 22 Jan 2019 11:43:44 +0800 Subject: Fix api doc nvim_buf_lines_event example when send_buffer=true, the first nvim_buf_lines_event will come with lastline=-1 instead of 0. --- runtime/doc/api.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 2520a15890..cdf6a8b92b 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -164,7 +164,7 @@ nvim_buf_detach_event[{buf}] *nvim_buf_detach_event* EXAMPLE ~ Calling |nvim_buf_attach()| with send_buffer=true on an empty buffer, emits: > - nvim_buf_lines_event[{buf}, {changedtick}, 0, 0, [""], v:false] + nvim_buf_lines_event[{buf}, {changedtick}, 0, -1, [""], v:false] User adds two lines to the buffer, emits: > nvim_buf_lines_event[{buf}, {changedtick}, 0, 0, ["line1", "line2"], v:false] -- cgit