##// END OF EJS Templates
vim: use try catch in vim plugin to avoid conflicts
Ali Vakilzade -
r21629:664c4942 default
parent child Browse files
Show More
@@ -105,7 +105,7 function! s:HGChangeToCurrentFileDir(fil
105 105 let fileName=<SID>HGResolveLink(a:fileName)
106 106 let newCwd=fnamemodify(fileName, ':h')
107 107 if strlen(newCwd) > 0
108 execute 'cd' escape(newCwd, ' ')
108 try | execute 'cd' escape(newCwd, ' ') | catch | | endtry
109 109 endif
110 110 return oldCwd
111 111 endfunction
@@ -396,7 +396,7 function! s:HGGetStatusVars(revisionVar,
396 396
397 397 return returnExpression
398 398 finally
399 execute 'cd' escape(oldCwd, ' ')
399 try | execute 'cd' escape(oldCwd, ' ') | catch | | endtry
400 400 endtry
401 401 endfunction
402 402
General Comments 0
You need to be logged in to leave comments. Login now