Skip to content

Commit

Permalink
plugin/magit.vim: escape vimagit path to solve space issue fix #89
Browse files Browse the repository at this point in the history
  • Loading branch information
jreybert committed Oct 12, 2016
1 parent 36c277e commit 19adac1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion plugin/magit.vim
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ let g:vimagit_version = [1, 6, 0]

" source common file. variables in common file are shared with plugin and
" syntax files
execute 'source ' . resolve(expand('<sfile>:p:h')) . '/../common/magit_common.vim'
let g:vimagit_path = fnameescape(resolve(expand('<sfile>:p:h')))
execute 'source ' . g:vimagit_path . '/../common/magit_common.vim'

" these mappings are broadly applied, for all vim buffers
let g:magit_show_magit_mapping = get(g:, 'magit_show_magit_mapping', '<leader>M' )
Expand Down
3 changes: 2 additions & 1 deletion syntax/magit.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ if exists("b:current_syntax")
finish
endif

execute 'source ' . resolve(expand('<sfile>:p:h')) . '/../common/magit_common.vim'
let s:vimagit_path = fnameescape(resolve(expand('<sfile>:p:h')))
execute 'source ' . s:vimagit_path . '/../common/magit_common.vim'

syn case match
syn sync minlines=50
Expand Down

0 comments on commit 19adac1

Please sign in to comment.