diff options
author | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2020-06-15 18:08:34 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-15 18:08:34 +0900 |
commit | e628a05b51d4620e91662f857d29f1ac8fc67862 (patch) | |
tree | 1af4f796b57ef19f4107575e648d1efe400dc0aa | |
parent | 6613ab6bca0bd866d96e806e9f4dd8c0c05f3575 (diff) | |
parent | 52cd8bf507d44bd5bad3f9c915ef6def7b6623c4 (diff) | |
download | rneovim-e628a05b51d4620e91662f857d29f1ac8fc67862.tar.gz rneovim-e628a05b51d4620e91662f857d29f1ac8fc67862.tar.bz2 rneovim-e628a05b51d4620e91662f857d29f1ac8fc67862.zip |
Merge pull request #12342 from h-michael/fix-doc
-rw-r--r-- | runtime/doc/api.txt | 3 | ||||
-rw-r--r-- | src/nvim/api/buffer.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index a2e0c56f85..fdabb0da50 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -1612,6 +1612,7 @@ nvim_buf_attach({buffer}, {send_buffer}, {opts}) *nvim_buf_attach()* {opts} Optional parameters. • on_lines: Lua callback invoked on change. Return`true`to detach. Args: + • the string "lines" • buffer handle • b:changedtick • first line that changed (zero-indexed) @@ -1626,11 +1627,13 @@ nvim_buf_attach({buffer}, {send_buffer}, {opts}) *nvim_buf_attach()* • on_changedtick: Lua callback invoked on changedtick increment without text change. Args: + • the string "changedtick" • buffer handle • b:changedtick • on_detach: Lua callback invoked on detach. Args: + • the string "detach" • buffer handle • utf_sizes: include UTF-32 and UTF-16 size diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c index b345dcaccd..18474c6588 100644 --- a/src/nvim/api/buffer.c +++ b/src/nvim/api/buffer.c @@ -126,6 +126,7 @@ String buffer_get_line(Buffer buffer, Integer index, Error *err) /// @param opts Optional parameters. /// - on_lines: Lua callback invoked on change. /// Return `true` to detach. Args: +/// - the string "lines" /// - buffer handle /// - b:changedtick /// - first line that changed (zero-indexed) @@ -136,9 +137,11 @@ String buffer_get_line(Buffer buffer, Integer index, Error *err) /// - deleted_codeunits (if `utf_sizes` is true) /// - on_changedtick: Lua callback invoked on changedtick /// increment without text change. Args: +/// - the string "changedtick" /// - buffer handle /// - b:changedtick /// - on_detach: Lua callback invoked on detach. Args: +/// - the string "detach" /// - buffer handle /// - utf_sizes: include UTF-32 and UTF-16 size of the replaced /// region, as args to `on_lines`. |