diff 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
line wrap: on
line diff
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -2738,7 +2738,7 @@ ex_args(exarg_T *eap)
 	    alist_new();
     }
 
-    if (!ends_excmd(*eap->arg))
+    if (*eap->arg != NUL)
     {
 	/*
 	 * ":args file ..": define new argument list, handle like ":next"