mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:30:04 +08:00
Fix tabline color (#3731)
This commit is contained in:
parent
5665e23236
commit
0bd38756eb
@ -76,9 +76,9 @@ function! s:wrap_id(id) abort
|
||||
elseif g:spacevim_buffer_index_type == 4
|
||||
let id = a:id
|
||||
else
|
||||
let id = s:MESSLETTERS.bubble_num(a:id, g:spacevim_buffer_index_type) . ' '
|
||||
let id = s:MESSLETTERS.bubble_num(a:id, g:spacevim_buffer_index_type)
|
||||
endif
|
||||
return id
|
||||
return id . ' '
|
||||
endfunction
|
||||
|
||||
function! s:buffer_item(bufnr, ...) abort
|
||||
@ -361,7 +361,7 @@ function! SpaceVim#layers#core#tabline#get() abort
|
||||
if right_hidden_buffer_number > 0
|
||||
let t .= ' %#SpaceVim_tabline_a_SpaceVim_tabline_b#' . s:lsep
|
||||
endif
|
||||
let t .= '%#SpaceVim_tabline_b# '
|
||||
let t .= s:is_modified(shown_items[0].bufnr) ? '%#SpaceVim_tabline_m_i# ' : '%#SpaceVim_tabline_b# '
|
||||
endif
|
||||
let index = 1
|
||||
for item in shown_items[:-2]
|
||||
@ -372,10 +372,11 @@ function! SpaceVim#layers#core#tabline#get() abort
|
||||
let index += 1
|
||||
if item.bufnr == s:BUFFER.bufnr()
|
||||
if s:is_modified(item.bufnr)
|
||||
let t .= ' %#SpaceVim_tabline_m_SpaceVim_tabline_b#' . s:lsep . '%#SpaceVim_tabline_b# '
|
||||
let t .= ' %#SpaceVim_tabline_m_SpaceVim_tabline_b#' . s:lsep
|
||||
else
|
||||
let t .= ' %#SpaceVim_tabline_a_SpaceVim_tabline_b#' . s:lsep . '%#SpaceVim_tabline_b# '
|
||||
let t .= ' %#SpaceVim_tabline_a_SpaceVim_tabline_b#' . s:lsep
|
||||
endif
|
||||
let t .= s:is_modified(s:buffers[index(s:buffers, item.bufnr) + 1]) ? '%#SpaceVim_tabline_m_i# ' : '%#SpaceVim_tabline_b# '
|
||||
elseif index(s:buffers, s:BUFFER.bufnr()) > 0 && item.bufnr == s:buffers[index(s:buffers, s:BUFFER.bufnr()) - 1]
|
||||
if s:is_modified(s:BUFFER.bufnr())
|
||||
let t .= ' %#SpaceVim_tabline_b_SpaceVim_tabline_m#' . s:lsep . '%#SpaceVim_tabline_m# '
|
||||
|
Loading…
Reference in New Issue
Block a user