Skip to content

Commit

Permalink
plugin/magit.vim: fix E871 error when staging (fix #117)
Browse files Browse the repository at this point in the history
  • Loading branch information
jreybert committed Feb 22, 2017
1 parent 910c21b commit 4255d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/magit.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ function! magit#stage_block(selection, discard) abort

" find current hunk position in file matching against current selection
" header
let hunk_id = match(map(deepcopy(file.get_hunks()), 'v:val.header'), a:selection[0])
let hunk_id = match(map(deepcopy(file.get_hunks()), 'v:val.header'), escape(a:selection[0], '*'))

if ( a:discard == 0 )
if ( section == 'unstaged' )
Expand Down

0 comments on commit 4255d9a

Please sign in to comment.