# HG changeset patch # User Ludovic Chabant # Date 1554822922 25200 # Tue Apr 09 08:15:22 2019 -0700 # Node ID 33cc4af93b4458c0521a44c6a5bf5bacb60d2770 # Parent 78176bdfe0be433eb71f60598825dbfb122c958c Use `HGPLAIN` for lawrencium buffers too. diff --git a/autoload/lawrencium.vim b/autoload/lawrencium.vim --- a/autoload/lawrencium.vim +++ b/autoload/lawrencium.vim @@ -351,6 +351,9 @@ " buffer. function! s:HgRepo.ReadCommandOutput(command, ...) abort function! s:PutOutputIntoBuffer(command_line) + let l:prev_hgplain = $HGPLAIN + let $HGPLAIN = 'true' + let l:was_buffer_empty = (line('$') == 1 && getline(1) == '') execute '0read!' . escape(a:command_line, '%#\') if l:was_buffer_empty " (Always true?) @@ -361,6 +364,8 @@ " default). normal! zRG"_dd endif + + let $HGPLAIN = l:prev_hgplain endfunction let l:all_args = [a:command] + a:000