diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-09-11 10:45:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-11 10:45:45 +0200 |
commit | 616a9bac32d37c2141f2cba9a0717ba67a041f80 (patch) | |
tree | 2e3f45d19925dcc90c49fdd00f4721a909cb7d85 /runtime/doc/api.txt | |
parent | 60e5d0fbcc8dfb942480aa2d9e4b45f4a255d952 (diff) | |
parent | d22172f36bbe147f3aa6b76a1c43ae445f481c2e (diff) | |
download | rneovim-616a9bac32d37c2141f2cba9a0717ba67a041f80.tar.gz rneovim-616a9bac32d37c2141f2cba9a0717ba67a041f80.tar.bz2 rneovim-616a9bac32d37c2141f2cba9a0717ba67a041f80.zip |
Merge pull request #24901 from faergeek/more-intuitive-cursor-update
fix(api): more intuitive cursor updates in nvim_buf_set_text
Diffstat (limited to 'runtime/doc/api.txt')
-rw-r--r-- | runtime/doc/api.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 7dd760b6a5..c0bea52513 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -2438,6 +2438,8 @@ nvim_buf_set_text({buffer}, {start_row}, {start_col}, {end_row}, {end_col}, Prefer |nvim_buf_set_lines()| if you are only adding or deleting entire lines. + Prefer |nvim_put()| if you want to insert text at the cursor position. + Attributes: ~ not allowed when |textlock| is active @@ -2451,6 +2453,7 @@ nvim_buf_set_text({buffer}, {start_row}, {start_col}, {end_row}, {end_col}, See also: ~ • |nvim_buf_set_lines()| + • |nvim_put()| nvim_buf_set_var({buffer}, {name}, {value}) *nvim_buf_set_var()* Sets a buffer-scoped (b:) variable |