New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing spaces in tabline #1631
Comments
I can add that check as well. |
and with
and with
|
Hello @IngoHeimbach and others who have reported this issue — thanks for doing so as I have noticed the same problem. Also, many thanks to @chrisbra for developing this pluging as I use it very regularly in Neovim and Vim. I wanted to chime in and note that I am seeing exactly the same issue that @andreyorst shared in the screenshots. The spacing in The only data point that I can add to the discussion is that the file that I open first never has enough spacing on the left regardless of how many buffers I open. Finally, it may be usesful to point out that I am using this plugin with the Devicons plugin and a patched font. Also, I took the advice of @kirjavascript and adding the following lines to my Neovim configuration file:
Please note that I do not use the triangles in my Airline and thus only needed the spaces. Okay, I hope that this helps! Of course, please let me know if you need more details to resolve this matter. Again, thanks to everyone involved in the development and improvement of this plugin. |
@gkapfham I must admit, that thiss issue is only about buffers. Tabs works fine. Though when you open a new tab, top line switches to display tabs instead of buffers on tle left side. If you working with single tab, top line shows buffers. And no matter how many buffers are in top line, the spacing is whong. P.S.: can someone explain me what this |
@andreyorst the number means how many windows (i.e. panes) that tab contains |
change this line let space= (pgroup == group ? s:spc : '') to if get(g:, 'airline_powerline_fonts', 0)
let space = s:spc
else
let space= (pgroup == group ? s:spc : '')
endif will make it look better. |
@tcbbd This seems to work quite well with powerline font, with no difference without powerline font. Seems fit for a PR to me. |
@slabua not sure how you got this extra space. |
@andreyorst in this previous picture of yours, before the change, EDIT:
Will test again and report below. |
Screenshot represents solution from #1631 (comment) and I also removed workaround from #1631 (comment) |
@andreyorst yup I had forgotten to remove that workaround. |
Just setup a new machine, this drove me crazy because I thought there was problem with my powerline fonts. |
Hello @IngoHeimbach and @erfanio! First, thanks for raising this issue as I was also experiencing this problem on a regular basis. Second, thanks to @erfanio for developing the fix and @chrisbra for merging it. Finally, I am writing to confirm that I am no longer seeing the problem that was initially reported — the fix is working correctly for me. Thanks everyone! |
I'm still seeing this issue, with the default settings with tabline=1 and the minimalist theme. I'm running the latest master as well: Also furthermore what's the meaning of left_sep/right_sep/left_alt_sep/right_alt_sep? I want to highlight the current buffer with something like |
@shuhaowu Can also confirm the issue still exists. Checked
@chrisbra Should the issue be re-opened? |
What I have seen is that with powerline fonts enabled, there is a single space before each buffer, whilst with powerline fonts disabled, there is no space before the first buffer and a single space before each subsequent buffer. |
IIRC this is expected behaviour. |
What a pity... Now I can't unsee it & my OCD is tingling like crazy... |
I don't understand what you are talking about. What exactly is the problem? |
Lack of leading space I presume. |
@khoacao96 in other words you'd like to also have a leading space in front of the first buffer when not using powerline fonts? |
@slabua Yes, exactly. I mean, when not using powerline fonts, there's a space in front of all the buffer names, except for the first buffer. Why not make it consistent? |
I'll have a look. |
I think this should be fixed now with the last commit |
@chrisbra Can confirm the issue is fixed. Thank you! |
environment
if you are using terminal:
if you are using Neovim:
Since commits ab49a1c and 02816a3 I have noticed missing white space in the tabline. With this minimal
vimrc
I get the following tabline with a missing space at the beginning of the first buffer name:

If powerline symbols are activated addtionally with
each buffer name has a missing white space:

The text was updated successfully, but these errors were encountered: