aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-05-23 06:08:24 +0800
committerGitHub <noreply@github.com>2024-05-23 06:08:24 +0800
commit5cbd6d9b9f232a6ff22ae3a9af80075404226e4b (patch)
treec17a90a3c65fc89e09bb77547d55ab8d1e161c33 /runtime/doc
parent3d43bdc81e4e0a7acf60050f1b749429516d30fa (diff)
downloadrneovim-5cbd6d9b9f232a6ff22ae3a9af80075404226e4b.tar.gz
rneovim-5cbd6d9b9f232a6ff22ae3a9af80075404226e4b.tar.bz2
rneovim-5cbd6d9b9f232a6ff22ae3a9af80075404226e4b.zip
vim-patch:9.1.0430: getregionpos() doesn't handle one char selection (#28924)
Problem: getregionpos() doesn't handle one char selection. Solution: Handle startspaces differently when is_oneChar is set. Also add a test for an exclusive charwise selection with multibyte chars (zeertzjq) closes: vim/vim#14825 https://github.com/vim/vim/commit/52a6f348874778cf315b47d9e8b5f818f4b97277
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/builtin.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index e0921cf477..2c1c6675c1 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -2985,8 +2985,8 @@ getregionpos({pos1}, {pos2} [, {opts}]) *getregionpos()*
the offset in screen columns from the start of the character.
E.g., a position within a <Tab> or after the last character.
If the "off" number of an ending position is non-zero, it is
- the character's number of cells included in the selection,
- otherwise the whole character is included.
+ the offset of the character's first cell not included in the
+ selection, otherwise all its cells are included.
getregtype([{regname}]) *getregtype()*
The result is a String, which is type of register {regname}.