To: vim_dev@googlegroups.com Subject: Patch 8.2.0596 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.0596 Problem: Crash in test49. Solution: Check the right pointer. Files: src/userfunc.c, src/testdir/test_eval.ok *** ../vim-8.2.0595/src/userfunc.c 2020-04-18 19:53:24.535912281 +0200 --- src/userfunc.c 2020-04-18 20:30:34.897390105 +0200 *************** *** 2504,2510 **** // With Vim9 script the name was made script-local, if not // found try again with the original name. ! if (p != NULL) fp = find_func(up, NULL); } --- 2504,2510 ---- // With Vim9 script the name was made script-local, if not // found try again with the original name. ! if (up != NULL) fp = find_func(up, NULL); } *** ../vim-8.2.0595/src/testdir/test_eval.ok 2016-01-16 16:32:18.000000000 +0100 --- src/testdir/test_eval.ok 2020-04-18 20:50:49.661492401 +0200 *************** *** 339,345 **** Executing call setreg(1, ["", "", [], ""]) Vim(call):E730: using List as a String Vim(function):E128: Function name must start with a capital or "s:": g:test() ! Vim(function):E128: Function name must start with a capital or "s:": b:test() Vim(function):E128: Function name must start with a capital or "s:": test2() "# called Foo(1) called Foo(2) --- 339,345 ---- Executing call setreg(1, ["", "", [], ""]) Vim(call):E730: using List as a String Vim(function):E128: Function name must start with a capital or "s:": g:test() ! Vim(function):E884: Function name cannot contain a colon: b:test() Vim(function):E128: Function name must start with a capital or "s:": test2() "# called Foo(1) called Foo(2) *** ../vim-8.2.0595/src/version.c 2020-04-18 19:53:24.535912281 +0200 --- src/version.c 2020-04-18 20:31:01.601294337 +0200 *************** *** 748,749 **** --- 748,751 ---- { /* Add new patch number below this line */ + /**/ + 596, /**/ -- An easy way to determine if you have enough teamwork to be doomed is simply to measure how long it takes from the time you decide to go to lunch together until the time you actually eat. (Scott Adams - The Dilbert principle) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///