Fix indentation.
This commit is contained in:
parent
a053925279
commit
6ef3213cd0
@ -392,18 +392,18 @@ endfunction
|
|||||||
" FUNCTION: Path.getSortKey() {{{1
|
" FUNCTION: Path.getSortKey() {{{1
|
||||||
" returns a key used in compare function for sorting
|
" returns a key used in compare function for sorting
|
||||||
function! s:Path.getSortKey()
|
function! s:Path.getSortKey()
|
||||||
let path = self.getLastPathComponent(1)
|
let path = self.getLastPathComponent(1)
|
||||||
if !g:NERDTreeSortHiddenFirst
|
if !g:NERDTreeSortHiddenFirst
|
||||||
let path = substitute(path, '^[._]', '', '')
|
let path = substitute(path, '^[._]', '', '')
|
||||||
endif
|
endif
|
||||||
if !g:NERDTreeCaseSensitiveSort
|
if !g:NERDTreeCaseSensitiveSort
|
||||||
let path = tolower(path)
|
let path = tolower(path)
|
||||||
endif
|
endif
|
||||||
if !g:NERDTreeNaturalSort
|
if !g:NERDTreeNaturalSort
|
||||||
let self._sortKey = [self.getSortOrderIndex(), path]
|
let self._sortKey = [self.getSortOrderIndex(), path]
|
||||||
else
|
else
|
||||||
let self._sortKey = [self.getSortOrderIndex()] + self._splitChunks(path)
|
let self._sortKey = [self.getSortOrderIndex()] + self._splitChunks(path)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return self._sortKey
|
return self._sortKey
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user