comparison src/ex_cmds2.c @ 15286:d2a162896a2a v8.1.0651

patch 8.1.0651: :args "foo works like :args without argument commit https://github.com/vim/vim/commit/2ac372ccee1af6f9fa105bf2648d5e4efa554236 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 28 19:06:47 2018 +0100 patch 8.1.0651: :args \"foo works like :args without argument Problem: :args \"foo works like :args without argument. Solution: Fix check for empty argument. (closes https://github.com/vim/vim/issues/3728)
author Bram Moolenaar <Bram@vim.org>
date Fri, 28 Dec 2018 19:15:05 +0100
parents 1783c0b6bc2e
children 3e2e1608efa4
comparison
equal deleted inserted replaced
15285:f6fd8f8a6583 15286:d2a162896a2a
2736 ALIST(curwin) = &global_alist; 2736 ALIST(curwin) = &global_alist;
2737 else /* eap->cmdidx == CMD_arglocal */ 2737 else /* eap->cmdidx == CMD_arglocal */
2738 alist_new(); 2738 alist_new();
2739 } 2739 }
2740 2740
2741 if (!ends_excmd(*eap->arg)) 2741 if (*eap->arg != NUL)
2742 { 2742 {
2743 /* 2743 /*
2744 * ":args file ..": define new argument list, handle like ":next" 2744 * ":args file ..": define new argument list, handle like ":next"
2745 * Also for ":argslocal file .." and ":argsglobal file ..". 2745 * Also for ":argslocal file .." and ":argsglobal file ..".
2746 */ 2746 */