comparison autoload/gutentags.vim @ 265:cbe7ffc327a4

Remove fnameescape call in chdir function fnameescape is applied when calling gutentags#chdir when called again it can cause the addition of extra escape characters. Resolves issue #277.
author Darren Kavanagh <dkav@users.noreply.github.com>
date Fri, 22 May 2020 13:53:25 -0700
parents dc9216fc0c0f
children 6030953258fe
comparison
equal deleted inserted replaced
264:2d634600fd6e 265:cbe7ffc327a4
523 523
524 " Switch to the project root to make the command line smaller, and make 524 " Switch to the project root to make the command line smaller, and make
525 " it possible to get the relative path of the filename to parse if we're 525 " it possible to get the relative path of the filename to parse if we're
526 " doing an incremental update. 526 " doing an incremental update.
527 let l:prev_cwd = getcwd() 527 let l:prev_cwd = getcwd()
528 call gutentags#chdir(fnameescape(l:proj_dir)) 528 call gutentags#chdir(l:proj_dir)
529 try 529 try
530 call call("gutentags#".a:module."#generate", 530 call call("gutentags#".a:module."#generate",
531 \[l:proj_dir, l:tags_file, 531 \[l:proj_dir, l:tags_file,
532 \ { 532 \ {
533 \ 'write_mode': a:write_mode, 533 \ 'write_mode': a:write_mode,
535 catch /^gutentags\:/ 535 catch /^gutentags\:/
536 echom "Error while generating ".a:module." file:" 536 echom "Error while generating ".a:module." file:"
537 echom v:exception 537 echom v:exception
538 finally 538 finally
539 " Restore the current directory... 539 " Restore the current directory...
540 call gutentags#chdir(fnameescape(l:prev_cwd)) 540 call gutentags#chdir(l:prev_cwd)
541 endtry 541 endtry
542 endfunction 542 endfunction
543 543
544 " }}} 544 " }}}
545 545