mirror of
https://github.com/neovim/neovim.git
synced 2026-01-04 10:26:42 +10:00
vim-patch:partial:9.1.0027: Vim is missing a foreach() func (#27037)
Problem: Vim is missing a foreach() func
Solution: Implement foreach({expr1}, {expr2}) function,
which applies {expr2} for each item in {expr1}
without changing it (Ernie Rael)
closes: vim/vim#12166
e79e207760
Partial port as this doesn't handle non-materialized range() lists.
vim-patch:c92b8bed1fa6
runtime(help): delete duplicate help tag E741 (vim/vim#13861)
c92b8bed1f
Co-authored-by: Ernie Rael <errael@raelity.com>
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
" Use a different file name for each run.
|
||||
let s:sequence = 1
|
||||
|
||||
func CheckDefSuccess(lines)
|
||||
return
|
||||
endfunc
|
||||
|
||||
func CheckDefFailure(lines, error, lnum = -3)
|
||||
return
|
||||
endfunc
|
||||
|
||||
Reference in New Issue
Block a user