mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-16 15:33:49 -05:00
fix s:uniq function
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
" Filename: autoload/lightline.vim
|
" Filename: autoload/lightline.vim
|
||||||
" Author: itchyny
|
" Author: itchyny
|
||||||
" License: MIT License
|
" License: MIT License
|
||||||
" Last Change: 2016/03/24 21:35:29.
|
" Last Change: 2016/03/24 21:44:35.
|
||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
@@ -265,10 +265,8 @@ else
|
|||||||
while 0 < i
|
while 0 < i
|
||||||
if a:xs[i] ==# a:xs[i - 1]
|
if a:xs[i] ==# a:xs[i - 1]
|
||||||
call remove(a:xs, i)
|
call remove(a:xs, i)
|
||||||
let i -= 2
|
|
||||||
else
|
|
||||||
let i -= 1
|
|
||||||
endif
|
endif
|
||||||
|
let i -= 1
|
||||||
endwhile
|
endwhile
|
||||||
return a:xs
|
return a:xs
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user