From 69d0663561a940f75294f3b1a41816b69a02c14a Mon Sep 17 00:00:00 2001 From: itchyny Date: Thu, 24 Mar 2016 21:45:05 +0900 Subject: [PATCH] fix s:uniq function --- autoload/lightline.vim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/autoload/lightline.vim b/autoload/lightline.vim index a2157c1..279554e 100644 --- a/autoload/lightline.vim +++ b/autoload/lightline.vim @@ -2,7 +2,7 @@ " Filename: autoload/lightline.vim " Author: itchyny " License: MIT License -" Last Change: 2016/03/24 21:35:29. +" Last Change: 2016/03/24 21:44:35. " ============================================================================= let s:save_cpo = &cpo @@ -265,10 +265,8 @@ else while 0 < i if a:xs[i] ==# a:xs[i - 1] call remove(a:xs, i) - let i -= 2 - else - let i -= 1 endif + let i -= 1 endwhile return a:xs endfunction