3a3d8751bbe9 v2.6.1

Merge pull request #30 from simnalamburt/nvim-support

Neovim support: line buffers shouldn't contain newlines
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Tue, 19 Jan 2016 14:46:47 +0000
parents 1be6a45c04c8 (current diff) 9a42f3562a99 (diff)
children 6577ac10e324
branches/tags v2.6.1
files autoload/gundo.py

Changes

--- 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):