# HG changeset patch # User Sylvain Soliman # Date 1352042003 -3600 # Node ID edc43c59b3b892b02f61386fa8a5d029ea5c8c1c # Parent ea0ae8f6af81d6b38f2af746ce9e8da615ffbc67 avoid conflicts with plugins like minibufexplorer that might open a buffer when a new one is created diff -r ea0ae8f6af81 -r edc43c59b3b8 plugin/lawrencium.vim --- a/plugin/lawrencium.vim Tue Aug 28 21:37:53 2012 -0700 +++ b/plugin/lawrencium.vim Sun Nov 04 16:13:23 2012 +0100 @@ -314,7 +314,7 @@ " Open the output of the command in a temp file. let l:temp_file = s:tempname('hg-output-', '.txt') execute 'pedit ' . l:temp_file - wincmd p + wincmd P call append(0, split(l:output, '\n')) else " Just print out the output of the command. @@ -397,7 +397,7 @@ let l:status_lines = split(l:status_text, '\n') execute "setlocal previewheight=" . (len(l:status_lines) + 1) execute "pedit " . l:temp_file - wincmd p + wincmd P call append(0, l:status_lines) call cursor(1, 1) " Make it a nice size. @@ -897,7 +897,7 @@ " and paste the `hg log` output in there. let l:temp_file = s:tempname('hg-log-', '.txt') execute "pedit " . l:temp_file - wincmd p + wincmd P execute "read !" . escape(l:log_command, '%#\') " Setup the buffer correctly: readonly, and with the correct repo linked