To: vim-dev@vim.org Subject: Patch 6.1.177 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.177 (depends on 6.1.141) Problem: ":wincmd" does not allow a following command. (Gary Johnson) Solution: Check for a following " | cmd". Also give an error for trailing characters. Files: src/ex_docmd.c *** ../vim61.176/src/ex_docmd.c Sun Jul 21 21:47:39 2002 --- src/ex_docmd.c Thu Sep 12 22:17:15 2002 *************** *** 6171,6176 **** --- 6171,6177 ---- exarg_T *eap; { int xchar = NUL; + int n; if (*eap->arg == 'g' || *eap->arg == Ctrl_G) { *************** *** 6181,6188 **** return; } xchar = eap->arg[1]; } ! do_window(*eap->arg, eap->addr_count > 0 ? eap->line2 : 0L, xchar); } #endif --- 6182,6197 ---- return; } xchar = eap->arg[1]; + n = 2; } ! else ! n = 1; ! ! eap->nextcmd = check_nextcmd(eap->arg + n); ! if (*skipwhite(eap->arg + n) != NUL && eap->nextcmd == NULL) ! EMSG(_(e_invarg)); ! else ! do_window(*eap->arg, eap->addr_count > 0 ? eap->line2 : 0L, xchar); } #endif *** ../vim61.176/src/version.c Sat Sep 14 17:00:01 2002 --- src/version.c Sat Sep 14 17:01:42 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 177, /**/ -- ARTHUR: Old woman! DENNIS: Man! ARTHUR: Man. I'm sorry. Old man, What knight live in that castle over there? DENNIS: I'm thirty-seven. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.vim.org \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///