diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-09-12 11:16:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-12 11:16:35 +0200 |
commit | 1c4a93b591828bc6970edad6282c004eb46f0b2d (patch) | |
tree | 2f2a403f8b0132976dfe0a61eb78f65028329cdd /runtime/lua/vim/highlight.lua | |
parent | 6b5f44817e93c2985f3ea32122f1dc0047054018 (diff) | |
parent | b04286a187d57c50f01cd36cd4668b7a69026579 (diff) | |
download | rneovim-1c4a93b591828bc6970edad6282c004eb46f0b2d.tar.gz rneovim-1c4a93b591828bc6970edad6282c004eb46f0b2d.tar.bz2 rneovim-1c4a93b591828bc6970edad6282c004eb46f0b2d.zip |
Merge pull request #13243 from bfredl/intersection
feat(extmark): support highlighting and querying multiline ranges
Diffstat (limited to 'runtime/lua/vim/highlight.lua')
-rw-r--r-- | runtime/lua/vim/highlight.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/lua/vim/highlight.lua b/runtime/lua/vim/highlight.lua index 14b0e71312..fd4fb54a5b 100644 --- a/runtime/lua/vim/highlight.lua +++ b/runtime/lua/vim/highlight.lua @@ -55,6 +55,9 @@ function M.range(bufnr, ns, higroup, start, finish, opts) local inclusive = opts.inclusive or false local priority = opts.priority or M.priorities.user + -- TODO: in case of 'v', 'V' (not block), this should calculate equivalent + -- bounds (row, col, end_row, end_col) as multiline regions are natively + -- supported now local region = vim.region(bufnr, start, finish, regtype, inclusive) for linenr, cols in pairs(region) do local end_row |