| Commit message (Collapse) | Author | Age |
... | |
|
|
|
|
|
|
| |
Problem: Trycatch test fails.
Solution: When calling function fails only check for following command, do
not give another error.
https://github.com/vim/vim/commit/40d9da2a4395025169ebaf53a63618adfa737e96
|
|
|
|
| |
Cherry-pick set_ref_in_call_stack() changes from patch 8.1.1575.
|
|
|
|
|
|
| |
Problem: Clearing funccal values twice.
Solution: Remove clearing individual fields.
https://github.com/vim/vim/commit/eac7ce01e92f3dee6bbccaf7e88680fe2ce286eb
|
|
|
|
|
|
|
|
|
|
| |
Problem: Calling a lambda is slower than evaluating a string.
Solution: Make calling a lambda faster. (Ken Takata, closes vim/vim#5727)
https://github.com/vim/vim/commit/f10806b25090879fdc1a86cc0da2f4f34fd21921
Port "uf_flags" constants from patch 8.2.1054 to sync with Vim.
Port user_func_error() from patch 8.2.0149.
Port Test_lambda_scope() changes from patch 8.1.0736 so that it passes.
|
|
|
|
|
|
|
|
|
|
|
| |
Problem: Computing function length name in many places.
Solution: compute name length in call_func().
https://github.com/vim/vim/commit/6ed8819822994512c160006bd1204aa11ae3c494
In call_func(), reassign "len" param to (int)STRLEN(funcname)
instead of using vim_strsave() which runs strlen().
"len" param is checked for v:lua functions.
call_func() states that strlen() is used if "len" is set to -1.
|
|
|
|
|
|
|
| |
Problem: Crash when using closures.
Solution: Set reference in varlist of funccal when running the garbage
collector. (Ozaki Kiichi, closes vim/vim#4554, closes vim/vim#4547)
https://github.com/vim/vim/commit/6e5000d493b4f385f901eb97f3ce0c8088373403
|
| |
|
|
|
|
|
|
| |
Problem: Gcc warns for using uninitialized variable. (John Marriott)
Solution: Set name_end also for environment variables.
https://github.com/vim/vim/commit/2bb76accc66d17f2c027c04396082c46f410bfea
|
|
|
|
| |
xcalloc() never returns NULL.
|
|
|
|
|
|
|
|
|
|
|
|
| |
vim-patch:8.2.1054: not so easy to pass a lua function to Vim
vim-patch:8.2.1084: Lua: registering function has useless code
I think I have also opened up the possibility for people to use these
callbacks elsewhere, since I've added a new struct that we should be
able to use.
Also, this should allow us to determine what the state of a list is in
Lua or a dictionary in Lua, since we now can track the luaref as we go.
|
| |
|
|
|
|
|
|
| |
Problem: Double free when running out of memory.
Solution: Remove one free. (Ken Takata, closes vim/vim#3955)
https://github.com/vim/vim/commit/445e71c5ee06015064cf0642cac8190cfe8fbc59
|
|
|
|
|
|
| |
Problem: Double free when garbage_collect() is used in autocommand.
Solution: Have garbage collection also set the copyID in funccal_stack.
https://github.com/vim/vim/commit/c07f67ad0e9c48a07d49f2d67eb63e183a22386a
|
|
|
|
|
|
|
| |
Problem: Using closure may consume a lot of memory.
Solution: unreference items that are no longer needed. Add a test. (Ozaki
Kiichi, closes vim/vim#3961)
https://github.com/vim/vim/commit/209b8e3e3bf7a4a3d102134124120f6c7f57d560
|
|
|
|
|
|
| |
Problem: Memory not freed on exit when quit in autocmd.
Solution: Remember funccal stack when executing autocmd.
https://github.com/vim/vim/commit/27e80c885bcb5c5cf6a6462d71d6c81b06ba2451
|
|
|
|
|
|
|
|
| |
Problem: Crash if triggering garbage collector after a function call.
(Michael Henry)
Solution: Don't call the garbage collector right away, do it later.
(closes vim/vim#3894)
https://github.com/vim/vim/commit/889da2f2438c8168f9a25dc776360b81109bad44
|
|
|
|
|
|
|
|
| |
Problem: May use a lot of memory when a function creates a cyclic
reference.
Solution: After saving a funccal many times, invoke the garbage collector.
(closes vim/vim#3835)
https://github.com/vim/vim/commit/4456ab527a6a5faae9287f3bd2e52cc18966cfb0
|
|
|
|
| |
vim-patch:7.4.2058
|
|
Lets stick with vim for now
|