diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-05-24 19:07:12 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-05-24 19:07:12 +0200 |
commit | afc2295c2201ae87bfbb42d5f5315ad0583ccabf (patch) | |
tree | 22134aed53f8089ab96392fa0bf588107a98d6c6 /runtime | |
parent | 5e4571508480c8f51748e49fb05c1891db0cb803 (diff) |
patch 9.1.0443: Can't use blockwise selection with width for getregion()v9.1.0443
Problem: Can't use a blockwise selection with a width for getregion().
Solution: Add support for blockwise selection with width like the return
value of getregtype() or the "regtype" value of TextYankPost
(zeertzjq).
closes: #14842
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/builtin.txt | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index afd84c11ef..866fab1773 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -4288,14 +4288,13 @@ getregion({pos1}, {pos2} [, {opts}]) *getregion()* The optional argument {opts} is a Dict and supports the following items: - type Specify the region's selection type - (default: "v"): - "v" for |characterwise| mode - "V" for |linewise| mode - "<CTRL-V>" for |blockwise-visual| mode + type Specify the region's selection type. + See |getregtype()| for possible values, + except it cannot be an empty string. + (default: "v") exclusive If |TRUE|, use exclusive selection - for the end position + for the end position. (default: follow 'selection') You can get the last selection type by |visualmode()|. |