diff --git a/plugin/magit.vim b/plugin/magit.vim index 43e0c21d5c9991c47f1df3f39d7d05824190981b..86078177b83b6ed03d983a2e1ba751a413aa58f8 100644 --- a/plugin/magit.vim +++ b/plugin/magit.vim @@ -706,19 +706,19 @@ function! magit#stage_block(selection, discard) abort call magit#git#git_unapply(header, a:selection, 'staged') endif else - echoerr "Must be in \"" . - \ g:magit_sections.staged . "\" or \"" . + echoerr "Must be in \"" . + \ g:magit_sections.staged . "\" or \"" . \ g:magit_sections.unstaged . "\" section" endif else if ( section == 'unstaged' ) if ( file.must_be_added() ) - call delete(filename) + call magit#git#git_checkout(magit#utils#add_quotes(filename)) else call magit#git#git_unapply(header, a:selection, 'unstaged') endif else - echoerr "Must be in \"" . + echoerr "Must be in \"" . \ g:magit_sections.unstaged . "\" section" endif endif