diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-09-12 17:10:31 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-09-12 17:28:07 +0800 |
commit | 245ac6f263b6017c050f885212ee80e5738d3b9f (patch) | |
tree | ca90a565370f46fd84ddf052c5769e04ede33e00 /src/nvim/eval.lua | |
parent | 4448fa88ecca11acd4742ef3d38f9e0d42c0b4a5 (diff) | |
download | rneovim-245ac6f263b6017c050f885212ee80e5738d3b9f.tar.gz rneovim-245ac6f263b6017c050f885212ee80e5738d3b9f.tar.bz2 rneovim-245ac6f263b6017c050f885212ee80e5738d3b9f.zip |
vim-patch:8.2.5034: there is no way to get the byte index from a virtual column
Problem: There is no way to get the byte index from a virtual column.
Solution: Add virtcol2col(). (Yegappan Lakshmanan, closes vim/vim#10477,
closes vim/vim#10098)
https://github.com/vim/vim/commit/5a6ec10cc80ab02eeff644ab19b82312630ea855
Cherry-pick tv_check_for_number_arg() from Vim.
Cherry-pick pathshorten() doc change.
Diffstat (limited to 'src/nvim/eval.lua')
-rw-r--r-- | src/nvim/eval.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index 3e89489459..5c500af899 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -425,6 +425,7 @@ return { uniq={args={1, 3}, base=1}, values={args=1, base=1}, virtcol={args=1, base=1}, + virtcol2col={args=3, base=1}, visualmode={args={0, 1}}, wait={args={2,3}}, wildmenumode={}, |