Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix :Chmod error

  • Loading branch information...
commit 6a4d1933ad61ad94f2fa06905337a51cb0304ac1 1 parent 4abf1f5
Tim Pope authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  plugin/eunuch.vim
2  plugin/eunuch.vim
@@ -57,7 +57,7 @@ command! -bar -nargs=1 -bang -complete=custom,s:Rename_complete Rename
57 57 \ Move<bang> %:h/<args>
58 58
59 59 command! -bar -nargs=1 Chmod :
60   - \ echoerr split(system('chmod '.<q-args>.' -- '.shellescape(expand('%'))), "\n")[0] |
  60 + \ echoerr get(split(system('chmod '.<q-args>.' -- '.shellescape(expand('%'))), "\n"), 0, '') |
61 61
62 62 command! -bar -bang -complete=file -nargs=+ Find :call s:Grep(<q-bang>, <q-args>, 'find')
63 63 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.
Something went wrong with that request. Please try again.