mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user