vim9: Use correct vim9 lambda functions

This commit is contained in:
Christian Brabandt 2021-05-08 13:55:26 +02:00
parent a2f298ba8f
commit e7eea7c6e8
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -429,7 +429,7 @@ else
var buflist = tabpagebuflist(n)
var winnr = tabpagewinnr(n)
var all_buffers = airline#extensions#tabline#buflist#list()
var curbuf = filter(buflist, {_, v -> index(all_buffers, v) != -1})
var curbuf = filter(buflist, (_, v) => index(all_buffers, v) != -1)
if len(curbuf) == 0
add(curbuf, tabpagebuflist()[0])
endif