Skip to content

Commit

Permalink
Fix legacy check for right tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
rbong committed Sep 1, 2023
1 parent 439e935 commit 2e82b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion legacy/autoload/crystalline.vim
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ function! crystalline#TabsOrBuffers(...) abort
endif

" Add at least one tab to right of selected if present and there's space
let l:add_right_tabs = l:tabselidx > 0 && l:tabselidx < l:ntabs && l:width < l:max_width && l:tab_count < l:max_tabs
let l:add_right_tabs = l:width < l:max_width && l:tabselidx + 1 < l:ntabs && l:tab_count < l:max_tabs
if l:add_right_tabs
let [l:tab, l:tabwidth] = g:CrystallineTabFn(l:tabbufs[l:tabselidx + 1], l:max_tab_width, v:false)
if l:enable_mouse
Expand Down

0 comments on commit 2e82b6b

Please sign in to comment.