Skip to content

Commit

Permalink
Fix prev_eol logic, fix #343
Browse files Browse the repository at this point in the history
  • Loading branch information
andymass committed May 19, 2024
1 parent b1d847a commit 838652d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/matchup/pos.vim
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ endfunction
function! matchup#pos#prev_eol(...) abort " {{{1
let [l:lnum, l:cnum; l:rest] = s:parse_args(a:000)

if l:cnum >= 1 && l:lnum > 1
if l:cnum <= 1 && l:lnum > 1
return [0, l:lnum - 1, strlen(getline(l:lnum - 1)) + 1, 0]
else
return matchup#pos#prev(l:lnum, l:cnum)
Expand Down

0 comments on commit 838652d

Please sign in to comment.