Skip to content

Commit

Permalink
'nvi' -> ['n', 'v', 'i']
Browse files Browse the repository at this point in the history
To support Neovim 0.6.
  • Loading branch information
dstein64 committed Jun 24, 2024
1 parent 66a6c03 commit e296662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/scrollview.vim
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ function! s:SetUpMouseMappings(button, primary) abort
let l:button =
\ strcharpart(l:button, 0, strchars(l:button, 1) - 1)
endif
for l:mapmode in 'nvi'
for l:mapmode in ['n', 'v', 'i']
execute printf(
\ 'silent! %smap %s <silent> <%smouse>'
\ .. ' <cmd>lua require("scrollview").handle_mouse("%s", %s)<cr>',
Expand Down

0 comments on commit e296662

Please sign in to comment.