##// 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 b' function! s:HGChangeToCurrentFileDir(fil'
105 let fileName=<SID>HGResolveLink(a:fileName)
105 let fileName=<SID>HGResolveLink(a:fileName)
106 let newCwd=fnamemodify(fileName, ':h')
106 let newCwd=fnamemodify(fileName, ':h')
107 if strlen(newCwd) > 0
107 if strlen(newCwd) > 0
108 execute 'cd' escape(newCwd, ' ')
108 try | execute 'cd' escape(newCwd, ' ') | catch | | endtry
109 endif
109 endif
110 return oldCwd
110 return oldCwd
111 endfunction
111 endfunction
@@ -396,7 +396,7 b' function! s:HGGetStatusVars(revisionVar,'
396
396
397 return returnExpression
397 return returnExpression
398 finally
398 finally
399 execute 'cd' escape(oldCwd, ' ')
399 try | execute 'cd' escape(oldCwd, ' ') | catch | | endtry
400 endtry
400 endtry
401 endfunction
401 endfunction
402
402
General Comments 0
You need to be logged in to leave comments. Login now