mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 16:12:48 +00:00
fix(api): more intuitive cursor updates in nvim_buf_set_text
Fixes #22526
This commit is contained in:
1
runtime/lua/vim/_meta/api.lua
generated
1
runtime/lua/vim/_meta/api.lua
generated
@@ -621,6 +621,7 @@ function vim.api.nvim_buf_set_option(buffer, name, value) end
|
||||
--- range, use `replacement = {}`.
|
||||
--- 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.
|
||||
---
|
||||
--- @param buffer integer Buffer handle, or 0 for current buffer
|
||||
--- @param start_row integer First line index
|
||||
|
||||
Reference in New Issue
Block a user