Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions plugin/webdevicons.vim
Original file line number Diff line number Diff line change
Expand Up @@ -553,13 +553,9 @@ function! NERDTreeWebDevIconsRefreshListener(event)
let hasGitNerdTreePlugin = (exists('g:loaded_nerdtree_git_status') == 1)
let artifactFix = s:DevIconsGetArtifactFix()

if hasGitFlags && g:WebDevIconsUnicodeGlyphDoubleWidth == 1

@ryanoasis ryanoasis Feb 22, 2019

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need WebDevIconsUnicodeGlyphDoubleWidth? 🤔

let prePadding .= ' '
endif

" align vertically at the same level: non git-flag nodes with git-flag nodes
if g:WebDevIconsNerdTreeGitPluginForceVAlign && !hasGitFlags && hasGitNerdTreePlugin
let prePadding .= ' '
let prePadding .= ' '
endif

if !path.isDirectory
Expand Down Expand Up @@ -616,7 +612,7 @@ function! NERDTreeWebDevIconsRefreshListener(event)
endif

else
let flag = ''
let flag = prePadding . ' ' . artifactFix . postPadding
endif

call path.flagSet.clearFlags('webdevicons')
Expand Down