Vim-devicons: nerdtree, when press "up a dir", the folder icon missing

Created on 2 Jan 2017  Â·  7Comments  Â·  Source: ryanoasis/vim-devicons

system : ubuntu 16.04
vim version : 7.4

screenshot from 2017-01-02 22-52-45

âš  confirmed bug

Most helpful comment

I have also noticed that the behaviour is different depending on whether let g:DevIconsEnableFoldersOpenClose is set to 0 or 1.
In my recording above, I have set it to 1. When the issue occurs, the icon gets fixed by cycling open/close status for the particular folder. If it's set to 0, instead, cycling open/close the folder doesn't fix the appearance.

All 7 comments

Thanks for the report. I'll take a look

@wuqiong4945 Sorry for the long delay.

I am not able to replicate the issue. Do you still have the issue with the latest version?

Which keymap is this? u or U or something else?

@wuqiong4945 Ah okay now I see it. It is with U (uppercase U)

I have encountered this bug, initially in a different way but I also tried by pressing u and it still happens.
Here are the steps that reproduced the issue for me:

  1. Navigate inside a folder by pressing e
  2. Move up entering the parent folder ../ with <CR>

peek 2018-01-14 16-40-slowed

I have also noticed that the behaviour is different depending on whether let g:DevIconsEnableFoldersOpenClose is set to 0 or 1.
In my recording above, I have set it to 1. When the issue occurs, the icon gets fixed by cycling open/close status for the particular folder. If it's set to 0, instead, cycling open/close the folder doesn't fix the appearance.

@ryanoasis I am having this problem even now.
Reproducible just by

  1. start vim in a folder
  2. toggle nerdtree and
  3. press 'u'/'U'

This only happens the first time I go to the parent dir, e.g. press 'u' when first time open nerdtree or after I jump to a bookmark.

Tested with a minimal .vimrc below and on Archlinux, urxvt, vim 8.1, Hack nerdfont and plugins fresh installed.

Screenshot_2019-11-17_15-35-42
Screenshot_2019-11-17_15-35-52

.vimrc:

call plug#begin('~/.vim/bundle')
Plug 'scrooloose/nerdtree'
Plug 'ryanoasis/vim-devicons'
call plug#end()

I have the same problem, too.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ntropia2 picture ntropia2  Â·  4Comments

washtubs picture washtubs  Â·  11Comments

slabua picture slabua  Â·  6Comments

soulomoon picture soulomoon  Â·  10Comments

flippidippi picture flippidippi  Â·  9Comments