{"action":"created","issue":{"url":"https://api.github.com/repos/ryanoasis/vim-devicons/issues/239","repository_url":"https://api.github.com/repos/ryanoasis/vim-devicons","labels_url":"https://api.github.com/repos/ryanoasis/vim-devicons/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/ryanoasis/vim-devicons/issues/239/comments","events_url":"https://api.github.com/repos/ryanoasis/vim-devicons/issues/239/events","html_url":"https://github.com/ryanoasis/vim-devicons/issues/239","id":314938977,"node_id":"MDU6SXNzdWUzMTQ5Mzg5Nzc=","number":239,"title":"Missing Icons after adding files when using g:NERDTreeNaturalSort","user":{"login":"kreskij","id":5374846,"node_id":"MDQ6VXNlcjUzNzQ4NDY=","avatar_url":"https://avatars0.githubusercontent.com/u/5374846?v=4","gravatar_id":"","url":"https://api.github.com/users/kreskij","html_url":"https://github.com/kreskij","followers_url":"https://api.github.com/users/kreskij/followers","following_url":"https://api.github.com/users/kreskij/following{/other_user}","gists_url":"https://api.github.com/users/kreskij/gists{/gist_id}","starred_url":"https://api.github.com/users/kreskij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kreskij/subscriptions","organizations_url":"https://api.github.com/users/kreskij/orgs","repos_url":"https://api.github.com/users/kreskij/repos","events_url":"https://api.github.com/users/kreskij/events{/privacy}","received_events_url":"https://api.github.com/users/kreskij/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-17T07:34:19Z","updated_at":"2018-06-03T05:54:08Z","closed_at":null,"author_association":"NONE","body":"Neovim v0.2.3-dev\r\nWebdevicons Version 0.10.0 (latest at the time of the creation of this issue)\r\n\r\nNot a critical bug for me, I can just disable NERDTree's natural sort to fix it but I might as well point it out. NaturalSort is disabled by default in NERDtree so it would only affect those who have enabled it via ```let g:NERDTreeNaturalSort = 1```\r\n\r\n**Problem:** \r\nWhen adding multiple files via NERDTRee's file-action menu, I hit 'r' for refresh, and icons appear and disappear under certain circumstances. It seems as though NERDTree's sorting feature is causing the issue. The issue does not always occur, I think it depends on the actual filenames added and whether or not they change the sort order under Natural Sorting rules.\r\n\r\n**Vimrc**\r\n```\r\nlet g:NERDTreeNaturalSort  = 1\r\ncall plug#begin(g:Vars.plugins_dirpath)\r\n  Plug 'scrooloose/nerdtree'\r\n  Plug 'ryanoasis/vim-devicons'\r\ncall plug#end()\r\n```\r\n**Steps to reproduce**\r\n1. Open NERDTree\r\n2. Add a file 'TEST_00.txt'      (filename is important here)\r\n3. Hit 'r' to refresh. Icon shows up as expected    (no problem here)\r\n4. Add a second file, 'TEST_0.txt'    (note, only one zero this time)\r\n5. Hit 'r' to refresh. Note the missing icons on one of the two files.\r\n\r\nAlso, if I created the files in reverse order, TEST_0.txt followed by TEST_00.txt, there is no issue. \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ryanoasis/vim-devicons/issues/comments/394139163","html_url":"https://github.com/ryanoasis/vim-devicons/issues/239#issuecomment-394139163","issue_url":"https://api.github.com/repos/ryanoasis/vim-devicons/issues/239","id":394139163,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDEzOTE2Mw==","user":{"login":"LvChengbin","id":963223,"node_id":"MDQ6VXNlcjk2MzIyMw==","avatar_url":"https://avatars2.githubusercontent.com/u/963223?v=4","gravatar_id":"","url":"https://api.github.com/users/LvChengbin","html_url":"https://github.com/LvChengbin","followers_url":"https://api.github.com/users/LvChengbin/followers","following_url":"https://api.github.com/users/LvChengbin/following{/other_user}","gists_url":"https://api.github.com/users/LvChengbin/gists{/gist_id}","starred_url":"https://api.github.com/users/LvChengbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LvChengbin/subscriptions","organizations_url":"https://api.github.com/users/LvChengbin/orgs","repos_url":"https://api.github.com/users/LvChengbin/repos","events_url":"https://api.github.com/users/LvChengbin/events{/privacy}","received_events_url":"https://api.github.com/users/LvChengbin/received_events","type":"User","site_admin":false},"created_at":"2018-06-03T05:54:08Z","updated_at":"2018-06-03T05:54:08Z","author_association":"NONE","body":"It's still not working for me.\r\n\r\n![image](https://user-images.githubusercontent.com/963223/40883673-926c657e-6735-11e8-8f8d-ca1dee12b36e.png)\r\n"}}
{"actor":{"display_login":"LvChengbin"}}