Skip to content
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

Dots appearing to the right of icons in NerdTree #84

Closed
rdlugosz opened this issue Jul 23, 2015 · 4 comments
Closed

Dots appearing to the right of icons in NerdTree #84

rdlugosz opened this issue Jul 23, 2015 · 4 comments

Comments

@rdlugosz
Copy link

I'm seeing "dots" immediately to the right of the icons in NERDTree and it looks as if the dots partially cut off the right edge of the image. Any idea what's going on here? I do not see the dots when I don't have the devicons plugin loaded. Font in use here is patched "Sauce Code Pro", but I see the same results with any font (including unpatched fonts).

screen shot 2015-07-23 at 4 37 23 pm

My vimrc is here. I see this in both MacVim and Neovim (terminal). Running the latest/very recent of everything: NVIM 0.0.0-alpha+201507221531 (compiled Jul 22 2015 21:29:54), VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 15 2015 08:44:52) MacOS X (unix) version Included patches: 1-712; All plugins current as of today.

@ryanoasis
Copy link
Owner

Hmm that is odd. Can you see what char code it gives when you highlight with cursor and enter ga ?

You should see the hex and octal value.

I did add a display hack fix that adds a supposedly empty character that helps with glyphs being cut off but possibly on your system that char is not blank: https://github.com/ryanoasis/vim-devicons/blob/master/plugin/webdevicons.vim#L533-L537

@rdlugosz
Copy link
Author

Ah! Doing a ga made the problem obvious: < > 160, \240, U+00A0 NO-BREAK SPACE, ^KNS, &nbsp; …and in my vimrc: let &listchars = "tab:>-,trail:\u2591,extends:>,precedes:<,nbsp:\u00b7"

Disabling the special character for nbsp resolved the issue. Thx for pointing me in the right direction.

@ryanoasis
Copy link
Owner

@rdlugosz Awesome! 🎉 Glad you were able to find the reason and resolve.

Do you think using NO-BREAK SPACE as a hack fix character is a bad idea? Should we use something else?

@rdlugosz
Copy link
Author

rdlugosz commented Aug 2, 2015

If there's a better choice than NBSP I'm not aware of one. I think your usage is fine (and probably 99% of users aren't setting a listchar for nbsp like I was—and I wasn't really in need of that listchar anyway, so I'm not bothered by unsetting it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants