To: vim_dev@googlegroups.com Subject: Patch 9.0.0811 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.0811 Problem: Error if :echowin is preceded by a command modifier. Solution: Do not give an error for range when there is a modifier. (closes #11414) Files: src/vim9compile.c, src/testdir/test_vim9_script.vim *** ../vim-9.0.0810/src/vim9compile.c 2022-10-13 16:12:51.744207021 +0100 --- src/vim9compile.c 2022-10-21 11:56:45.854265466 +0100 *************** *** 2712,2719 **** ; if (!isdigit(*p)) { ! // the command must be following ! if (p < eap->cmd) { emsg(_(e_invalid_range)); return -1; --- 2712,2720 ---- ; if (!isdigit(*p)) { ! // The command or modifiers must be following. Assume a lower case ! // character means there is a modifier. ! if (p < eap->cmd && !vim_islower(*p)) { emsg(_(e_invalid_range)); return -1; *** ../vim-9.0.0810/src/testdir/test_vim9_script.vim 2022-10-13 16:12:51.748207004 +0100 --- src/testdir/test_vim9_script.vim 2022-10-21 11:58:43.434287180 +0100 *************** *** 2032,2037 **** --- 2032,2041 ---- def Test_echowindow_cmd() var local = 'local' echowindow 'something' local # comment + + # with modifier + unsilent echowin 'loud' + # output goes in message window popup_clear() enddef *** ../vim-9.0.0810/src/version.c 2022-10-21 11:25:25.689652476 +0100 --- src/version.c 2022-10-21 12:00:04.670305371 +0100 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 811, /**/ -- ARTHUR: It is I, Arthur, son of Uther Pendragon, from the castle of Camelot. King of all Britons, defeator of the Saxons, sovereign of all England! [Pause] SOLDIER: Get away! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///