mirror of
https://github.com/neovim/neovim.git
synced 2026-04-20 22:35:33 +00:00
vim-patch:9.1.0157: Duplicate assignment in f_getregion() (#27766)
Problem: Duplicate assignment in f_getregion().
Solution: Remove the duplicate assignment. Also improve getregion()
docs wording and fix an unrelated typo (zeertzjq)
closes: vim/vim#14154
0df8f93bda
This commit is contained in:
8
runtime/lua/vim/_meta/vimfn.lua
generated
8
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -3531,7 +3531,7 @@ function vim.fn.getreginfo(regname) end
|
||||
--- {pos1} and {pos2} must both be |List|s with four numbers.
|
||||
--- See |getpos()| for the format of the list. It's possible
|
||||
--- to specify positions from a different buffer, but please
|
||||
--- note the limitations at |getregion-notes|
|
||||
--- note the limitations at |getregion-notes|.
|
||||
---
|
||||
--- The optional argument {opts} is a Dict and supports the
|
||||
--- following items:
|
||||
@@ -3565,9 +3565,9 @@ function vim.fn.getreginfo(regname) end
|
||||
--- - If {pos1} and {pos2} are not in the same buffer, an empty
|
||||
--- list is returned.
|
||||
--- - {pos1} and {pos2} must belong to a |bufloaded()| buffer.
|
||||
--- - It is evaluated in current window context, this makes a
|
||||
--- different if a buffer is displayed in a different window and
|
||||
--- 'virtualedit' or 'list' is set
|
||||
--- - It is evaluated in current window context, which makes a
|
||||
--- difference if the buffer is displayed in a window with
|
||||
--- different 'virtualedit' or 'list' values.
|
||||
---
|
||||
--- Examples: >
|
||||
--- :xnoremap <CR>
|
||||
|
||||
Reference in New Issue
Block a user