| To: vim-dev@vim.org |
| Subject: patch 7.0.218 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.0.218 |
| Problem: "%B" in 'statusline' always shows zero in Insert mode. (DervishD) |
| Solution: Remove the exception for Insert mode, check the column for being |
| valid instead. |
| Files: src/buffer.c |
| |
| |
| |
| |
| |
| *** 3710,3716 **** |
| case STL_BYTEVAL_X: |
| base = 'X'; |
| case STL_BYTEVAL: |
| ! if (((State & INSERT) && wp == curwin) || empty_line) |
| num = 0; |
| else |
| { |
| --- 3710,3716 ---- |
| case STL_BYTEVAL_X: |
| base = 'X'; |
| case STL_BYTEVAL: |
| ! if (wp->w_cursor.col > STRLEN(linecont)) |
| num = 0; |
| else |
| { |
| |
| |
| |
| *** 668,669 **** |
| --- 668,671 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 218, |
| /**/ |
| |
| -- |
| Vim is like Emacs without all the typing. (John "Johann" Spetz) |
| |
| /// 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 /// |