comparison plugin/lawrencium.vim @ 131:f9328d486624

Fix minor error in paths for s:HgRecord
author Karl Yngve Lerv?g <karl.yngve@lervag.net>
date Wed, 17 Feb 2016 10:46:03 +0100
parents a9136d95cf47
children c04855b6f318
comparison
equal deleted inserted replaced
122:a9136d95cf47 131:f9328d486624
2186 " to 'move' those changes into the parent revision. 2186 " to 'move' those changes into the parent revision.
2187 let l:cmd = 'keepalt rightbelow split ' 2187 let l:cmd = 'keepalt rightbelow split '
2188 if a:split == 1 2188 if a:split == 1
2189 let l:cmd = 'keepalt rightbelow vsplit ' 2189 let l:cmd = 'keepalt rightbelow vsplit '
2190 endif 2190 endif
2191 let l:rev_path = l:repo.GetLawrenciumPath(expand('%'), 'rev', '') 2191 let l:rev_path = l:repo.GetLawrenciumPath(expand('%:p'), 'rev', '')
2192 execute l:cmd . fnameescape(l:rev_path) 2192 execute l:cmd . fnameescape(l:rev_path)
2193 2193
2194 " This new buffer with the parent revision is set as a Lawrencium buffer. 2194 " This new buffer with the parent revision is set as a Lawrencium buffer.
2195 " Let's save it to an actual file and reopen it like that (somehow we 2195 " Let's save it to an actual file and reopen it like that (somehow we
2196 " could probably do it with `:saveas` instead but we'd need to reset a 2196 " could probably do it with `:saveas` instead but we'd need to reset a