Permalink
Browse files

Fix :Chmod error

  • Loading branch information...
tpope committed Mar 2, 2013
1 parent 4abf1f5 commit 6a4d1933ad61ad94f2fa06905337a51cb0304ac1
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/eunuch.vim
View
@@ -57,7 +57,7 @@ command! -bar -nargs=1 -bang -complete=custom,s:Rename_complete Rename
\ Move<bang> %:h/<args>
command! -bar -nargs=1 Chmod :
- \ echoerr split(system('chmod '.<q-args>.' -- '.shellescape(expand('%'))), "\n")[0] |
+ \ echoerr get(split(system('chmod '.<q-args>.' -- '.shellescape(expand('%'))), "\n"), 0, '') |
command! -bar -bang -complete=file -nargs=+ Find :call s:Grep(<q-bang>, <q-args>, 'find')
command! -bar -bang -complete=file -nargs=+ Locate :call s:Grep(<q-bang>, <q-args>, 'locate')

0 comments on commit 6a4d193

Please sign in to comment.