Skip to content

Dots appearing to the right of icons in NerdTree #84

Closed

Description

@rdlugosz

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.

Activity

  1. ryanoasis commented on Jul 25, 2015

    @ryanoasis
    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

  2. rdlugosz commented on Jul 30, 2015

    @rdlugosz
    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.

  3. ryanoasis commented on Jul 30, 2015

    @ryanoasis
    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?

  4. rdlugosz commented on Aug 2, 2015

    @rdlugosz
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions