mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-13 22:13:50 -05:00
fix s:map (#156)
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/04/08 09:23:19.
|
" Last Change: 2016/04/08 13:49:53.
|
||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
@@ -407,7 +407,7 @@ else
|
|||||||
function! s:map(xs, f) abort
|
function! s:map(xs, f) abort
|
||||||
let ys = []
|
let ys = []
|
||||||
for i in range(len(a:xs))
|
for i in range(len(a:xs))
|
||||||
call extend(ys, map(a:xs[i:i], substitute(a:f, 'v:key', i, 'g')))
|
call extend(ys, map(a:xs[(i):(i)], substitute(a:f, 'v:key', i, 'g')))
|
||||||
endfor
|
endfor
|
||||||
return ys
|
return ys
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user