diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-16 06:28:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-16 06:28:52 +0800 |
commit | a245dd79a267c8b56866023e84b49d0ecffca65b (patch) | |
tree | cae7c06afdb1e10be19d08a43af13df74df3724f /runtime/doc/builtin.txt | |
parent | 10c5f35a8ddf2683e0c849f71c02b81556ece902 (diff) | |
download | rneovim-a245dd79a267c8b56866023e84b49d0ecffca65b.tar.gz rneovim-a245dd79a267c8b56866023e84b49d0ecffca65b.tar.bz2 rneovim-a245dd79a267c8b56866023e84b49d0ecffca65b.zip |
vim-patch:9.0.1717: virtcol2col returns last byte of a multi-byte char (#24729)
Problem: virtcol2col returns last byte of a multi-byte char
Solution: Make it return the first byte for a multi-byte char
closes: vim/vim#12786
closes: vim/vim#12799
https://github.com/vim/vim/commit/b209b86e6636a16088ccacdac98213416c065bf2
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'runtime/doc/builtin.txt')
-rw-r--r-- | runtime/doc/builtin.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 7356f644a1..bc5f0948e2 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -8434,6 +8434,9 @@ virtcol2col({winid}, {lnum}, {col}) *virtcol2col()* {lnum}, then the byte index of the character at the last virtual column is returned. + For a multi-byte character, the column number of the first + byte in the character is returned. + The {winid} argument can be the window number or the |window-ID|. If this is zero, then the current window is used. |