# HG changeset patch # User Steve Losh # Date 1453214807 0 # Node ID 3a3d8751bbe989566242e852dfabc7b335e649da # Parent 1be6a45c04c830b9b1841b4510a5651c5c2eafdb# Parent 9a42f3562a99a9de924c9518141b3e7f8f3ce4dd Merge pull request #30 from simnalamburt/nvim-support Neovim support: line buffers shouldn't contain newlines diff -r 1be6a45c04c8 -r 3a3d8751bbe9 autoload/gundo.py --- a/autoload/gundo.py Mon Dec 07 16:00:57 2015 +0000 +++ b/autoload/gundo.py Tue Jan 19 14:46:47 2016 +0000 @@ -336,7 +336,7 @@ def _output_preview_text(lines): _goto_window_for_buffer_name('__Gundo_Preview__') vim.command('setlocal modifiable') - vim.current.buffer[:] = lines + vim.current.buffer[:] = [line.rstrip('\n') for line in lines] vim.command('setlocal nomodifiable') def _generate_preview_diff(current, node_before, node_after):