Skip to content

Commit

Permalink
Update vim-plug
Browse files Browse the repository at this point in the history
  • Loading branch information
adarsh committed Jun 17, 2016
1 parent 8739f02 commit ded37eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions vim/autoload/plug.vim
Expand Up @@ -793,6 +793,7 @@ function! s:do(pull, force, todo)
else
let error = 'Invalid hook type'
endif
call s:switch_in()
call setline(4, empty(error) ? (getline(4) . 'OK')
\ : ('x' . getline(4)[1:] . error))
if !empty(error)
Expand Down
7 changes: 7 additions & 0 deletions vim/autoload/plug.vim.old
Expand Up @@ -493,6 +493,13 @@ function! s:lod_map(map, names, prefix)
endif
let extra .= nr2char(c)
endwhile
if v:count
call feedkeys(v:count, 'n')
endif
call feedkeys('"'.v:register, 'n')
if mode(1) == 'no'
call feedkeys(v:operator)
endif
call feedkeys(a:prefix . substitute(a:map, '^<Plug>', "\<Plug>", '') . extra)
endfunction

Expand Down

0 comments on commit ded37eb

Please sign in to comment.