zefei / vim-wintabs

Modern buffer manager for Vim
MIT License
325 stars 25 forks source link

Memoization broke first edited file #32

Closed jordwalke closed 6 years ago

jordwalke commented 6 years ago

This diff: * d9bc6d0 (TMP5) memoize get_bufline (by Zefei Xuan 2 weeks ago)

Seems to have broken the experience where you open up vim, and then do :e someExistingFile.txt. The file doesn't show up in the statusline. It acts as if it's an empty/non-listed/non-named file. Can you confirm?

jordwalke commented 6 years ago

My entire Config:

" This must be set in the gvimrc (also doing it here)
let g:wintabs_display='statusline'
set hidden
let g:wintabs_autoclose=2
let g:wintabs_autoclose_vim=1
let g:wintabs_autoclose_vimtab=1
let g:wintabs_switchbuf='useopen,usetab'
let g:wintabs_ui_active_higroup = 'TabLineSel'

" TODO: Enable toggling of "patched fonts" at startup.

" If doing some custom rendered GUI use a not-actually space.
" let intertabSpace= ' '
let intertabSpace= ' '
let activeWinTabChar = '|'
" This must be different to distinguish.
let activeWinTabChar = '▎'
" This must be different to distinguish.

"            
" MacVim has broken double wide glyphs.
if has("gui_macvim") && has("gui_running")
  let g:wintabs_ui_buffer_name_format=' %t '
  let activeVimTabChar = '▍'
  " let activeVimTabChar = '▍'
else
  let g:wintabs_ui_buffer_name_format='  %t '
  let activeVimTabChar = '▍'
  " let activeVimTabChar = '▍'
endif

let g:wintabs_ui_sep_leftmost=intertabSpace
let g:wintabs_ui_sep_inbetween=intertabSpace
let g:wintabs_ui_active_left=activeVimTabChar 
let g:wintabs_ui_active_right=intertabSpace
let g:wintabs_ui_sep_rightmost=intertabSpace
let g:wintabs_ui_modified=' ◎'
let g:wintabs_ignored_filetypes=[]
" Annotating the active vimtab makes it always available for detection
let g:wintabs_ui_active_vimtab_left=activeVimTabChar
let g:wintabs_ui_active_vimtab_right=intertabSpace

let g:wintabs_ui_arrow_left='«'
let g:wintabs_ui_arrow_right='»'
zefei commented 6 years ago

Will take a look and hopefully fix it soon.

zefei commented 6 years ago

Should be fixed now.