Skip to content

Commit

Permalink
Fix legacy argument name
Browse files Browse the repository at this point in the history
  • Loading branch information
rbong committed Sep 2, 2023
1 parent 25a3147 commit 217e8f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions legacy/autoload/crystalline.vim
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ function! crystalline#DefaultTab(tab, buf, max_width, is_sel) abort

" Get left/right components
let l:left = g:crystalline_tab_left
let l:right = getbufvar(a:bufnr, '&mod') ? g:crystalline_tab_mod : g:crystalline_tab_nomod
let l:right = getbufvar(a:buf, '&mod') ? g:crystalline_tab_mod : g:crystalline_tab_nomod
let l:lr_width = strchars(l:left) + strchars(l:right)
let l:max_name_width = a:max_width - l:lr_width

" Get name
let l:name = bufname(a:bufnr)
let l:name = bufname(a:buf)
if l:name ==# ''
let l:name = g:crystalline_tab_empty
let l:name_width = strchars(l:name)
Expand Down

0 comments on commit 217e8f8

Please sign in to comment.