Fix visible tabs
Now all the space is not used enough. The total length of one tab is 21 characters, therefore it is necessary to adjust the calculation of which tabs can be displayed and which ones cannot. Also modify the padding calculation for a tab length of 21 characters.
Can we also put that magic number 21 to the top of that file (or somewhere else), then use it? This doesn't seem maintainable
of course, I created a local constant BUF_WIDTH, which I use in both places
the total length of a tab was 23 before, why 21?
:fearful:
why are we closing this @romanschulz
You can change it back
I tried to determine the exact width of the panel for the buffer, because I think it is little bit smaller than the mentioned 23 characters, I just don't know if it is always... sometimes I counted 21 and now I saw that it can be 22 characters. When I think about it, it is the sum of: space + icon + space + 15 characters of the filename (or 16?) + space + X button + space = 21 (or 22)
@romanschulz pr looks right, just lowecase the variable buf_width