Skip to content

Commit

Permalink
strcharlen -> strchars
Browse files Browse the repository at this point in the history
To support older versions of Neovim.
  • Loading branch information
dstein64 committed Jun 24, 2024
1 parent ee0a0dc commit 2c2234c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/scrollview.vim
Original file line number Diff line number Diff line change
Expand Up @@ -396,10 +396,10 @@ function! s:SetUpMouseMappings(button, primary) abort
" feedkeys calls in handle_mouse() to remap keys).
let l:force = v:false
let l:button = a:button
if strcharpart(l:button, strcharlen(l:button) - 1, 1) ==# '!'
if strcharpart(l:button, strchars(l:button, 1) - 1, 1) ==# '!'
let l:force = v:true
let l:button =
\ strcharpart(l:button, 0, strcharlen(l:button) - 1)
\ strcharpart(l:button, 0, strchars(l:button, 1) - 1)
endif
for l:mapmode in 'nvi'
execute printf(
Expand Down

0 comments on commit 2c2234c

Please sign in to comment.