To: [email protected]
Subject: Patch 5.6a.011
Fcc: outbox
From: Bram Moolenaar <[email protected]>
------------

Patch 5.6a.011 (depends on 5.6a.004)
Problem:    A missing ":endif" or ":endwhile" in a function doesn't give an
           error message.
Solution:   Give that error message.
Files:      src/ex_docmd.c


*** ../vim-5.6a.10/src/ex_docmd.c       Mon Dec 27 14:24:53 1999
--- src/ex_docmd.c      Mon Dec 27 13:56:40 1999
***************
*** 582,588 ****
     free_cmdlines(&lines_ga);
     ga_clear(&lines_ga);

!     if (cstack.cs_idx >= 0 && getline == getsourceline)
     {
       if (cstack.cs_flags[cstack.cs_idx] & CSF_WHILE)
           EMSG("Missing :endwhile");
--- 582,590 ----
     free_cmdlines(&lines_ga);
     ga_clear(&lines_ga);

!     if (cstack.cs_idx >= 0
!           && (getline == getsourceline
!               || (getline == get_func_line && !func_has_ended(cookie))))
     {
       if (cstack.cs_flags[cstack.cs_idx] & CSF_WHILE)
           EMSG("Missing :endwhile");
*** ../vim-5.6a.10/src/version.c        Mon Dec 27 14:24:53 1999
--- src/version.c       Mon Dec 27 14:24:13 1999
***************
*** 420,421 ****
--- 420,423 ----
 {   /* Add new patch number below this line */
+ /**/
+     11,
 /**/

--
THEOREM: VI is perfect.
PROOF: VI in roman numerals is 6.  The natural numbers < 6 which divide 6 are
1, 2, and 3. 1+2+3 = 6.  So 6 is a perfect number.  Therefore, VI is perfect.
QED
                                                   -- Arthur Tateishi

--/-/---- Bram Moolenaar ---- [email protected] ---- [email protected] ---\-\--
 \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /