comparison plugin/lawrencium.vim @ 103:bc6003e7159e

Fix stupid typo, make sure paths are normalized.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 05 Aug 2014 17:12:22 -0700
parents 2078a8b475c2
children 518a6b2eff56
comparison
equal deleted inserted replaced
102:afcd66edd6cc 103:bc6003e7159e
295 295
296 " Gets a full path given a repo-relative path. 296 " Gets a full path given a repo-relative path.
297 function! s:HgRepo.GetFullPath(path) abort 297 function! s:HgRepo.GetFullPath(path) abort
298 let l:root_dir = self.root_dir 298 let l:root_dir = self.root_dir
299 if s:isabspath(a:path) 299 if s:isabspath(a:path)
300 call s:throw("Expected relative path, got absolute path: " . a:path)` 300 call s:throw("Expected relative path, got absolute path: " . a:path)
301 endif 301 endif
302 return l:root_dir . a:path 302 return s:normalizepath(l:root_dir . a:path)
303 endfunction 303 endfunction
304 304
305 " Gets a repo-relative path given any path. 305 " Gets a repo-relative path given any path.
306 function! s:HgRepo.GetRelativePath(path) abort 306 function! s:HgRepo.GetRelativePath(path) abort
307 execute 'lcd! ' . self.root_dir 307 execute 'lcd! ' . self.root_dir