From 9a2ed35ff9f7d38dc7e37b6ddefa2ca4eb02139e Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 8 Jan 2018 13:46:08 +0100 Subject: [PATCH] tabline: do not confuse Vim looks like this: ``` let a=(condition ? s:var:'') ``` confuses older Vims and it complains about a missing colon. So make parsing a bit easier and add a space in front of the second colon. fixes #1629 --- autoload/airline/extensions/tabline/buffers.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/tabline/buffers.vim b/autoload/airline/extensions/tabline/buffers.vim index 5664d338..606a9c36 100644 --- a/autoload/airline/extensions/tabline/buffers.vim +++ b/autoload/airline/extensions/tabline/buffers.vim @@ -87,7 +87,7 @@ function! airline#extensions#tabline#buffers#get() call b.add_raw('%'.nr.'@airline#extensions#tabline#buffers#clickbuf@') endif - let space= (pgroup == group ? s:spc: '') + let space= (pgroup == group ? s:spc : '') if get(g:, 'airline#extensions#tabline#buffer_idx_mode', 0) if len(s:number_map) > 0