Mercurial > vim-lawrencium
comparison plugin/lawrencium.vim @ 44:95f8e7cb5ca2
Stop fucking with my brain, Python.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 14 Aug 2012 22:29:52 -0700 |
parents | fc20a265551d |
children | ea0ae8f6af81 |
comparison
equal
deleted
inserted
replaced
43:fc20a265551d | 44:95f8e7cb5ca2 |
---|---|
259 | 259 |
260 " Hg {{{ | 260 " Hg {{{ |
261 | 261 |
262 function! s:Hg(bang, ...) abort | 262 function! s:Hg(bang, ...) abort |
263 let l:repo = s:hg_repo() | 263 let l:repo = s:hg_repo() |
264 if g:lawrencium_auto_cd: | 264 if g:lawrencium_auto_cd |
265 " Temporary set the current directory to the root of the repo | 265 " Temporary set the current directory to the root of the repo |
266 " to make auto-completed paths work magically. | 266 " to make auto-completed paths work magically. |
267 execute 'cd! ' . l:repo.root_dir | 267 execute 'cd! ' . l:repo.root_dir |
268 endif | 268 endif |
269 let l:output = call(l:repo.RunCommand, a:000, l:repo) | 269 let l:output = call(l:repo.RunCommand, a:000, l:repo) |
270 if g:lawrencium_auto_cd: | 270 if g:lawrencium_auto_cd |
271 execute 'cd! -' | 271 execute 'cd! -' |
272 endif | 272 endif |
273 if a:bang | 273 if a:bang |
274 " Open the output of the command in a temp file. | 274 " Open the output of the command in a temp file. |
275 let l:temp_file = s:tempname('hg-output-', '.txt') | 275 let l:temp_file = s:tempname('hg-output-', '.txt') |