Skip to content

Commit

Permalink
Merge pull request #30 from simnalamburt/nvim-support
Browse files Browse the repository at this point in the history
Neovim support: line buffers shouldn't contain newlines
  • Loading branch information
sjl committed Jan 19, 2016
2 parents dd5ab1e + 0d9806d commit 8b63b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/gundo.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def _fmt_time(t):
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):
Expand Down

0 comments on commit 8b63b05

Please sign in to comment.