mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 20:03:48 -05:00
Removed directory separator from sort key (#1219)
* Removed directory separator from sort key Directories had an additional separator appended to them which caused improper comparisons for other directories that shared similar prefixes. * Updated changelog
This commit is contained in:
@@ -394,7 +394,7 @@ function! s:Path.getSortKey()
|
||||
let self._sortKey = [self.getSortOrderIndex()] + metadata
|
||||
endif
|
||||
|
||||
let path = self.getLastPathComponent(1)
|
||||
let path = self.getLastPathComponent(0)
|
||||
if !g:NERDTreeSortHiddenFirst
|
||||
let path = substitute(path, '^[._]', '', '')
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user