Fix the pane opening.
This commit is contained in:
parent
8e4432a73f
commit
4e76e0e8ff
@ -75,6 +75,7 @@ function! s:GundoOpenBuffer()
|
|||||||
|
|
||||||
if existing_gundo_buffer == -1
|
if existing_gundo_buffer == -1
|
||||||
exe bufwinnr(bufnr('__Gundo_Preview__')) . "wincmd w"
|
exe bufwinnr(bufnr('__Gundo_Preview__')) . "wincmd w"
|
||||||
|
exe "new __Gundo__"
|
||||||
call s:GundoResizeBuffers(winnr())
|
call s:GundoResizeBuffers(winnr())
|
||||||
nnoremap <script> <silent> <buffer> <CR> :call <sid>GundoRevert()<CR>
|
nnoremap <script> <silent> <buffer> <CR> :call <sid>GundoRevert()<CR>
|
||||||
nnoremap <script> <silent> <buffer> j :call <sid>GundoMove(1)<CR>
|
nnoremap <script> <silent> <buffer> j :call <sid>GundoMove(1)<CR>
|
||||||
@ -138,6 +139,7 @@ function! s:GundoMarkPreviewBuffer()
|
|||||||
setlocal buflisted
|
setlocal buflisted
|
||||||
setlocal nomodifiable
|
setlocal nomodifiable
|
||||||
setlocal filetype=diff
|
setlocal filetype=diff
|
||||||
|
setlocal nowrap
|
||||||
" TODO: Set foldmethod?
|
" TODO: Set foldmethod?
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@ -151,6 +153,7 @@ function! s:GundoMarkBuffer()
|
|||||||
setlocal nolist
|
setlocal nolist
|
||||||
setlocal nonumber
|
setlocal nonumber
|
||||||
setlocal norelativenumber
|
setlocal norelativenumber
|
||||||
|
setlocal nowrap
|
||||||
call s:GundoSyntax()
|
call s:GundoSyntax()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user