From 92d04a7cc292c2ca2dd935cb91b0c02a84aa8a0e Mon Sep 17 00:00:00 2001 From: itchyny Date: Fri, 29 Apr 2016 13:41:23 +0900 Subject: [PATCH] use function('uniq') --- autoload/lightline.vim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/autoload/lightline.vim b/autoload/lightline.vim index ca2f1a4..a86aaf7 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/04/24 21:48:18. +" Last Change: 2016/04/29 13:38:36. " ============================================================================= let s:save_cpo = &cpo @@ -247,9 +247,7 @@ function! s:term(p) abort endfunction if exists('*uniq') - function! s:uniq(xs) abort - return uniq(a:xs) - endfunction + let s:uniq = function('uniq') else function! s:uniq(xs) abort let i = len(a:xs) - 1