diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-07 21:40:53 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-03-07 21:43:21 +0100 |
commit | 0df8f93bdaea77a1afb9f4eca94fe67ec73e6df2 (patch) | |
tree | a5622a9214a744593229d5fab7805a9191d7b71b /runtime/doc/builtin.txt | |
parent | 769eb2d0c3614f9ea6fffa82329558f1a4af384f (diff) |
patch 9.1.0157: Duplicate assignment in f_getregion()v9.1.0157
Problem: Duplicate assignment in f_getregion().
Solution: Remove the duplicate assignment. Also improve getregion()
docs wording and fix an unrelated typo (zeertzjq)
closes: #14154
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/doc/builtin.txt')
-rw-r--r-- | runtime/doc/builtin.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 09b4dd068e..fb957e54a9 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -1,4 +1,4 @@ -*builtin.txt* For Vim version 9.1. Last change: 2024 Mar 06 +*builtin.txt* For Vim version 9.1. Last change: 2024 Mar 07 VIM REFERENCE MANUAL by Bram Moolenaar @@ -4280,7 +4280,7 @@ getregion({pos1}, {pos2} [, {opts}]) *getregion()* {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: @@ -4314,9 +4314,9 @@ getregion({pos1}, {pos2} [, {opts}]) *getregion()* - 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> |