aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorMax Christian Pohle2021-10-07 17:00:38 +0200
committerMax Christian Pohle2021-10-07 17:00:38 +0200
commit37c0222c1eb00d2ea88ca4bf8f732b71d6bcf986 (patch)
treebc78cd13cebf2c36f8ff62c3dacf2b22f96ec648 /plugin
parenta1334a8a83f0a8f19256d7062e872a46c78fe3fc (diff)
downloadvim-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-xplugin/vim-fancy-line.vim4
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.'#'
..