comparison plugin/lawrencium.vim @ 21:d0acefc1ec9a

Fixed multi-line output of `:Hg`.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 14 Dec 2011 16:52:11 -0800
parents 4f04d5e052eb
children 84bceffbb19c
comparison
equal deleted inserted replaced
20:01932a36df03 21:d0acefc1ec9a
251 if a:bang 251 if a:bang
252 " Open the output of the command in a temp file. 252 " Open the output of the command in a temp file.
253 let l:temp_file = s:tempname('hg-output-', '.txt') 253 let l:temp_file = s:tempname('hg-output-', '.txt')
254 execute 'pedit ' . l:temp_file 254 execute 'pedit ' . l:temp_file
255 wincmd p 255 wincmd p
256 call append(0, l:output) 256 call append(0, split(l:output, '\n'))
257 else 257 else
258 " Just print out the output of the command. 258 " Just print out the output of the command.
259 echo l:output 259 echo l:output
260 endif 260 endif
261 endfunction 261 endfunction