]>
Commit | Line | Data |
---|---|---|
468bf62c AM |
1 | To: vim-dev@vim.org |
2 | Subject: patch 7.0.218 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.0.218 | |
11 | Problem: "%B" in 'statusline' always shows zero in Insert mode. (DervishD) | |
12 | Solution: Remove the exception for Insert mode, check the column for being | |
13 | valid instead. | |
14 | Files: src/buffer.c | |
15 | ||
16 | ||
17 | *** ../vim-7.0.217/src/buffer.c Tue Mar 6 20:27:03 2007 | |
18 | --- src/buffer.c Thu Mar 15 22:50:54 2007 | |
19 | *************** | |
20 | *** 3710,3716 **** | |
21 | case STL_BYTEVAL_X: | |
22 | base = 'X'; | |
23 | case STL_BYTEVAL: | |
24 | ! if (((State & INSERT) && wp == curwin) || empty_line) | |
25 | num = 0; | |
26 | else | |
27 | { | |
28 | --- 3710,3716 ---- | |
29 | case STL_BYTEVAL_X: | |
30 | base = 'X'; | |
31 | case STL_BYTEVAL: | |
32 | ! if (wp->w_cursor.col > STRLEN(linecont)) | |
33 | num = 0; | |
34 | else | |
35 | { | |
36 | *** ../vim-7.0.217/src/version.c Thu Mar 15 21:38:30 2007 | |
37 | --- src/version.c Thu Mar 15 22:54:05 2007 | |
38 | *************** | |
39 | *** 668,669 **** | |
40 | --- 668,671 ---- | |
41 | { /* Add new patch number below this line */ | |
42 | + /**/ | |
43 | + 218, | |
44 | /**/ | |
45 | ||
46 | -- | |
47 | Vim is like Emacs without all the typing. (John "Johann" Spetz) | |
48 | ||
49 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
50 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
51 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
52 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |