diff --git a/.gitignore b/.gitignore index 1819f7b..b3043e3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ tmux/.tmux/resurrect nvim/.config/nvim/plugged nvim/.config/nvim/.netrwhist +plug.vim.old diff --git a/nvim/.local/share/nvim/site/autoload/plug.vim b/nvim/.local/share/nvim/site/autoload/plug.vim index 91b4072..78fdc03 100644 --- a/nvim/.local/share/nvim/site/autoload/plug.vim +++ b/nvim/.local/share/nvim/site/autoload/plug.vim @@ -1338,9 +1338,10 @@ function! s:bar() endfunction function! s:logpos(name) - for i in range(4, line('$')) + let max = line('$') + for i in range(4, max > 4 ? max : 4) if getline(i) =~# '^[-+x*] '.a:name.':' - for j in range(i + 1, line('$')) + for j in range(i + 1, max > 5 ? max : 5) if getline(j) !~ '^ ' return [i, j - 1] endif