comparison plugin/lawrencium.vim @ 132:c04855b6f318

Merge pull request #9 from GitHub.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 19 Feb 2016 15:54:53 -0800
parents 7ad578b151c1 f9328d486624
children add9f0ed0b49 48f4124af78d
comparison
equal deleted inserted replaced
130:7ad578b151c1 132:c04855b6f318
2214 " to 'move' those changes into the parent revision. 2214 " to 'move' those changes into the parent revision.
2215 let l:cmd = 'keepalt rightbelow split ' 2215 let l:cmd = 'keepalt rightbelow split '
2216 if a:split == 1 2216 if a:split == 1
2217 let l:cmd = 'keepalt rightbelow vsplit ' 2217 let l:cmd = 'keepalt rightbelow vsplit '
2218 endif 2218 endif
2219 let l:rev_path = l:repo.GetLawrenciumPath(expand('%'), 'rev', '') 2219 let l:rev_path = l:repo.GetLawrenciumPath(expand('%:p'), 'rev', '')
2220 execute l:cmd . fnameescape(l:rev_path) 2220 execute l:cmd . fnameescape(l:rev_path)
2221 2221
2222 " This new buffer with the parent revision is set as a Lawrencium buffer. 2222 " This new buffer with the parent revision is set as a Lawrencium buffer.
2223 " Let's save it to an actual file and reopen it like that (somehow we 2223 " Let's save it to an actual file and reopen it like that (somehow we
2224 " could probably do it with `:saveas` instead but we'd need to reset a 2224 " could probably do it with `:saveas` instead but we'd need to reset a