a5cc91b6f479

Fix the pane opening.
[view raw] [browse files]
author Steve Losh <steve@dwaiter.com>
date Wed, 13 Oct 2010 15:26:49 -0400
parents 2eb51ffb8401
children e1ec5e0b1b19
branches/tags (none)
files plugin/gundo.vim

Changes

--- a/plugin/gundo.vim	Wed Oct 13 15:19:20 2010 -0400
+++ b/plugin/gundo.vim	Wed Oct 13 15:26:49 2010 -0400
@@ -75,6 +75,7 @@
 
     if existing_gundo_buffer == -1
         exe bufwinnr(bufnr('__Gundo_Preview__')) . "wincmd w"
+        exe "new __Gundo__"
         call s:GundoResizeBuffers(winnr())
         nnoremap <script> <silent> <buffer> <CR>  :call <sid>GundoRevert()<CR>
         nnoremap <script> <silent> <buffer> j     :call <sid>GundoMove(1)<CR>
@@ -138,6 +139,7 @@
     setlocal buflisted
     setlocal nomodifiable
     setlocal filetype=diff
+    setlocal nowrap
     " TODO: Set foldmethod?
 endfunction
 
@@ -151,6 +153,7 @@
     setlocal nolist
     setlocal nonumber
     setlocal norelativenumber
+    setlocal nowrap
     call s:GundoSyntax()
 endfunction