| To: vim-dev@vim.org |
| Subject: Patch 7.2.340 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.2.340 |
| Problem: Gcc warning for condition that can never be true. (James Vega) |
| Solution: Use start_lvl instead flp->lvl. |
| Files: src/fold.c |
| |
| |
| |
| |
| |
| *** 3239,3246 **** |
| flp->lvl = n; |
| flp->lvl_next = n - 1; |
| /* never start a fold with an end marker */ |
| ! if (flp->lvl_next > flp->lvl) |
| ! flp->lvl_next = flp->lvl; |
| } |
| } |
| else |
| --- 3239,3246 ---- |
| flp->lvl = n; |
| flp->lvl_next = n - 1; |
| /* never start a fold with an end marker */ |
| ! if (flp->lvl_next > start_lvl) |
| ! flp->lvl_next = start_lvl; |
| } |
| } |
| else |
| |
| |
| |
| *** 683,684 **** |
| --- 683,686 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 340, |
| /**/ |
| |
| -- |
| Would you care for a drink? I mean, if it were, like, |
| disabled and you had to look after it? |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ download, build and distribute -- http://www.A-A-P.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |