To: [email protected]
Subject: patch 5.4n.3
Fcc: outbox
From: Bram Moolenaar <[email protected]>
------------

Patch 5.4n.3
Problem:    C-indenting was wrong after "  } else".  The white space was not
           skipped.  Visible when 'cino' has "+10".
Solution:   Skip white space before calling cin_iselse(). (Norbert Zeh)
Files:      src/misc1.c


*** ../vim-5.4n/src/misc1.c     Sun Jul  4 20:35:47 1999
--- src/misc1.c Mon Jul  5 21:20:32 1999
***************
*** 4415,4423 ****

                   /*
                    * Check if we are after an "if", "while", etc.
!                    * Also allow "} else".
                    */
!                   if (cin_is_cinword(l) || cin_iselse(l))
                   {
                       /*
                        * Found an unterminated line after an if (), line up
--- 4417,4425 ----

                   /*
                    * Check if we are after an "if", "while", etc.
!                    * Also allow "   } else".
                    */
!                   if (cin_is_cinword(l) || cin_iselse(skipwhite(l)))
                   {
                       /*
                        * Found an unterminated line after an if (), line up

--
ARTHUR: Charge!
  [They all charge with swords drawn towards the RABBIT.  A tremendous twenty
  second fight with Peckinpahish shots and borrowing heavily also on the
  Kung Fu and karate-type films ensues, in which some four KNIGHTS are
  comprehensively killed.]
ARTHUR: Run away!  Run away!
                "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

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