aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_lambda.vim
Commit message (Collapse)AuthorAge
* Allow lambdas to be used with jobs, timers and dictwatchers.Michael Ennen2017-02-14
|
* vim-patch:7.4.2137Michael Ennen2017-02-14
| | | | | | | | | Problem: Using function() with a name will find another function when it is redefined. Solution: Add funcref(). Refer to lambda using a partial. Fix several reference counting issues. https://github.com/vim/vim/commit/437bafe4c8a83ed71ee006eda7f54b65a90f0d4c
* vim-patch:7.4.2136Michael Ennen2017-02-14
| | | | | | | Problem: Closure function fails. Solution: Don't reset uf_scoped when it points to another funccal. https://github.com/vim/vim/commit/580164481924ed8611eb79f0247a0eb1ca0b3b9a
* vim-patch:7.4.2120Michael Ennen2017-02-14
| | | | | | | | Problem: User defined functions can't be a closure. Solution: Add the "closure" argument. Allow using :unlet on a bound variable. (Yasuhiro Matsumoto, Ken Takata) https://github.com/vim/vim/commit/10ce39a0d52272a3dfff2feb8c631529f29e6740
* vim-patch:7.4.2119Michael Ennen2017-02-14
| | | | | | | | Problem: Closures are not supported. Solution: Capture variables in lambdas from the outer scope. (Yasuhiro Matsumoto, Ken Takata) https://github.com/vim/vim/commit/1e96d9bf98f9ab84d5af7f98d6a961d91b17364f
* vim-patch:7.4.2076Michael Ennen2017-02-14
| | | | | | | Problem: Syntax error when dict has '>' key. Solution: Check for endchar. (Ken Takata) https://github.com/vim/vim/commit/4f0383bc3fe5af0229fb66b53fe94329af783eff
* vim-patch:7.4.2044Michael Ennen2017-02-14
| | | | | | | | Problem: filter() and map() either require a string or defining a function. Solution: Support lambda, a short way to define a function that evaluates an expression. (Yasuhiro Matsumoto, Ken Takata) https://github.com/vim/vim/commit/069c1e7fa9f45a665064f7f2c17da84d6a48f544
* vim-patch:7.4.1727Michael Ennen2017-02-14
Problem: Cannot detect a crash in tests when caused by garbagecollect(). Solution: Add garbagecollect_for_testing(). Do not free a job if is still useful. https://github.com/vim/vim/commit/ebf7dfa6f121c82f97d2adca3d45fbaba9ad8f7e