Closed rememberthemer closed 13 years ago
Get a lot of non-fatal but annoying errors when using quickfixsigns together with fugitive.
E.g. :Gcommit opens a buffer (named 'index') for editing the commit message, which triggers
function! quickfixsigns#vcsdiff#GetList(filename) quickfixsigns#vcsdiff#GuessType() ## evaluates to 'git' ... let dir = fnamemodify(a:filename, ':h') #### evaluates to '.git' ... let dir0 = expand('%:p:h') #### evaluates to '.git' exec 'cd' fnameescape(dir) #### CRAP
i.e. buffer has no directory path (dir0), so lts of cdpath error messages ensue.
The 'quickfix' is to add the following:
let dir0 = expand('%:p:h') if dir0 == '.git' return [] endif
PS thanks for the plugin. vv useful.
Adrian
I added a check to retrieve a list only in normal buffers. Please let me know if this works. If it doesn't, I will blacklist the .git directory as proposed.
All is now good.
Cheers Mr TomTom
Get a lot of non-fatal but annoying errors when using quickfixsigns together with fugitive.
E.g. :Gcommit opens a buffer (named 'index') for editing the commit message, which triggers
function! quickfixsigns#vcsdiff#GetList(filename) quickfixsigns#vcsdiff#GuessType() ## evaluates to 'git' ... let dir = fnamemodify(a:filename, ':h') #### evaluates to '.git' ... let dir0 = expand('%:p:h') #### evaluates to '.git' exec 'cd' fnameescape(dir) #### CRAP
i.e. buffer has no directory path (dir0), so lts of cdpath error messages ensue.
The 'quickfix' is to add the following:
PS thanks for the plugin. vv useful.
Adrian