To: vim_dev@googlegroups.com Subject: Patch 8.2.1452 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1452 Problem: Vim9: dead code in to_name_end(). Solution: Remove check for lambda and dict, it won't be used. Files: src/vim9compile.c *** ../vim-8.2.1451/src/vim9compile.c 2020-08-13 22:47:20.373992741 +0200 --- src/vim9compile.c 2020-08-14 21:41:35.460062535 +0200 *************** *** 2396,2412 **** if (eval_dict(&p, &rettv, NULL, TRUE) == FAIL) p = arg; } - else if (p == arg && *arg == '{') - { - int ret = get_lambda_tv(&p, &rettv, NULL); - - // Can be "{x -> ret}()". - // Can be "{'a': 1}->Func()". - if (ret == NOTDONE) - ret = eval_dict(&p, &rettv, NULL, FALSE); - if (ret != OK) - p = arg; - } return p; } --- 2396,2401 ---- *** ../vim-8.2.1451/src/version.c 2020-08-14 21:27:34.097321673 +0200 --- src/version.c 2020-08-14 21:42:26.587736002 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 1452, /**/ -- hundred-and-one symptoms of being an internet addict: 202. You're amazed to find out Spam is a food. /// 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 ///