diff options
author | Max Christian Pohle | 2021-10-07 17:00:38 +0200 |
---|---|---|
committer | Max Christian Pohle | 2021-10-07 17:00:38 +0200 |
commit | 37c0222c1eb00d2ea88ca4bf8f732b71d6bcf986 (patch) | |
tree | bc78cd13cebf2c36f8ff62c3dacf2b22f96ec648 /plugin | |
parent | a1334a8a83f0a8f19256d7062e872a46c78fe3fc (diff) | |
download | vim-fancy-line-37c0222c1eb00d2ea88ca4bf8f732b71d6bcf986.tar.bz2 vim-fancy-line-37c0222c1eb00d2ea88ca4bf8f732b71d6bcf986.zip |
Fixed errors with git detached head
also fixed :help vim-fancy-line
Diffstat (limited to 'plugin')
-rwxr-xr-x | plugin/vim-fancy-line.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/vim-fancy-line.vim b/plugin/vim-fancy-line.vim index 9b6ff55..bfa5e1c 100755 --- a/plugin/vim-fancy-line.vim +++ b/plugin/vim-fancy-line.vim | |||
@@ -108,8 +108,8 @@ augroup MAX_FANCY_LINE | |||
108 | 108 | ||
109 | function! UpdateTabline(highlight_group) | 109 | function! UpdateTabline(highlight_group) |
110 | let l:invert_group = CreateInvertGroup(a:highlight_group) | 110 | let l:invert_group = CreateInvertGroup(a:highlight_group) |
111 | let l:git_branch = systemlist('git branch --show-current')[0] | 111 | let l:git_branch = systemlist('git branch --show-current') |
112 | let l:git_branch = v:shell_error ? "" : g:status_sym_sep_start . ' ' . g:symbol_branch . ' ' . l:git_branch | 112 | let l:git_branch = (v:shell_error || l:git_branch == []) ? "" : g:status_sym_sep_start . ' ' . g:symbol_branch . ' ' . l:git_branch[0] |
113 | 113 | ||
114 | return '' | 114 | return '' |
115 | \ .'%#'.a:highlight_group.'#' | 115 | \ .'%#'.a:highlight_group.'#' |