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.
This commit is contained in:
Chen Mulong
2019-01-22 11:43:44 +08:00
committed by GitHub
parent bfb8170d32
commit 09f6b1f2cb

View File

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