To: vim-dev@vim.org Subject: patch 5.5.005 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.5.005 Problem: When using with a user command, an empty argument to the command resulted in one empty string, while no string was expected. Solution: Catch an empty argument and pass no argument to the function. (Paul Moore) Files: src/ex_docmd.c *** ../vim-5.5.4/src/ex_docmd.c Wed Sep 22 10:06:22 1999 --- src/ex_docmd.c Fri Sep 24 22:24:20 1999 *************** *** 5312,5318 **** { case ct_ARGS: /* Simple case first */ ! if (eap->arg == NUL) { if (quote == 1) { --- 5312,5318 ---- { case ct_ARGS: /* Simple case first */ ! if (*eap->arg == NUL) { if (quote == 1) { *************** *** 5320,5325 **** --- 5320,5328 ---- if (buf) STRCPY(buf, "''"); } + else + result = 0; + break; } switch (quote) *** ../vim-5.5.4/src/version.c Sat Sep 25 20:35:49 1999 --- src/version.c Sat Sep 25 20:38:41 1999 *************** *** 420,420 **** --- 420,421 ---- { /* Add new patch number below this line */ + 5, -- hundred-and-one symptoms of being an internet addict: 173. You keep tracking down the email addresses of all your friends (even childhood friends). --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\-- \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /