diff 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
line wrap: on
line diff
--- a/plugin/lawrencium.vim	Tue Dec 13 17:35:50 2011 -0800
+++ b/plugin/lawrencium.vim	Wed Dec 14 16:52:11 2011 -0800
@@ -253,7 +253,7 @@
         let l:temp_file = s:tempname('hg-output-', '.txt')
         execute 'pedit ' . l:temp_file
         wincmd p
-        call append(0, l:output)
+        call append(0, split(l:output, '\n'))
     else
         " Just print out the output of the command.
         echo l:output