diff options
author | Steven Sojka <steelsojka@users.noreply.github.com> | 2020-09-05 16:22:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-05 17:22:54 -0400 |
commit | fb55cb2d91382d2646205c9a7709f9517eb7f153 (patch) | |
tree | 2a72e4a0f9e29b09d8621484ba6d1e4ec3c32e06 /runtime/lua/vim/highlight.lua | |
parent | 858c056133ed50af8dc31fdeee1638cb69ea2c69 (diff) | |
download | rneovim-fb55cb2d91382d2646205c9a7709f9517eb7f153.tar.gz rneovim-fb55cb2d91382d2646205c9a7709f9517eb7f153.tar.bz2 rneovim-fb55cb2d91382d2646205c9a7709f9517eb7f153.zip |
fix(highlight): compare rows vs columns in range highlight check (#12852)
Diffstat (limited to 'runtime/lua/vim/highlight.lua')
-rw-r--r-- | runtime/lua/vim/highlight.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/highlight.lua b/runtime/lua/vim/highlight.lua index ce0a3de520..705b34dc99 100644 --- a/runtime/lua/vim/highlight.lua +++ b/runtime/lua/vim/highlight.lua @@ -14,7 +14,7 @@ function highlight.range(bufnr, ns, higroup, start, finish, rtype, inclusive) inclusive = inclusive or false -- sanity check - if start[2] < 0 or finish[2] < start[2] then return end + if start[2] < 0 or finish[1] < start[1] then return end local region = vim.region(bufnr, start, finish, rtype, inclusive) for linenr, cols in pairs(region) do |