Added statusline settings. Fixed indentation
I want to use a custom statusline for both Gundo splits so i added two variables for it setting it. If the variables are empty Gundo works like normal but if there is something in them the text get used. Example: let g:gundo_preview_statusline = "Gundo Preview" let g:gundo_tree_statusline = "Gundo Tree" The indentation was off in a few places so i fixed it. The real tabs was removed and replaced with spaces like the rest of the source file.
This commit is contained in:
parent
50092711ff
commit
aa7e5f10bc
@ -216,6 +216,9 @@ function! s:GundoOpenGraph()"{{{
|
||||
call s:GundoResizeBuffers(winnr())
|
||||
endif
|
||||
endif
|
||||
if exists("g:gundo_tree_statusline")
|
||||
let &l:statusline = g:gundo_tree_statusline
|
||||
endif
|
||||
endfunction"}}}
|
||||
|
||||
function! s:GundoOpenPreview()"{{{
|
||||
@ -250,6 +253,9 @@ function! s:GundoOpenPreview()"{{{
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
if exists("g:gundo_preview_statusline")
|
||||
let &l:statusline = g:gundo_preview_statusline
|
||||
endif
|
||||
endfunction"}}}
|
||||
|
||||
function! s:GundoClose()"{{{
|
||||
|
Loading…
Reference in New Issue
Block a user