mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 15:34:53 +01:00
fix: new cursor struct layout
This commit is contained in:
parent
72661a2eec
commit
0a28a4d479
1 changed files with 3 additions and 3 deletions
|
@ -40,15 +40,15 @@ local function register_cursor_handler(controller)
|
|||
}
|
||||
end
|
||||
user_buffer[event.user] = event.buffer
|
||||
local buffer = buffers.map_rev[event.position.buffer]
|
||||
local buffer = buffers.map_rev[event.buffer]
|
||||
if buffer ~= nil then
|
||||
vim.api.nvim_buf_clear_namespace(buffer, user_hl[event.user].ns, 0, -1)
|
||||
utils.multiline_highlight(
|
||||
buffer,
|
||||
user_hl[event.user].ns,
|
||||
user_hl[event.user].hi,
|
||||
event.position.start,
|
||||
event.position.finish
|
||||
event.start,
|
||||
event.finish
|
||||
)
|
||||
end
|
||||
end, 20)
|
||||
|
|
Loading…
Reference in a new issue