mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-18 01:38:57 +00:00
Fix prev_eol logic, fix #343
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user