]>
Commit | Line | Data |
---|---|---|
341b3a37 | 1 | To: vim-dev@vim.org |
2 | Subject: Patch 5.7.022 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | ------------ | |
6 | ||
7 | Patch 5.7.022 | |
8 | Problem: %v in 'statusline' is not displayed when it's equal to %c. | |
9 | Solution: Check if %V or %v is used and handle them differently. | |
10 | Files: src/screen.c | |
11 | ||
12 | ||
13 | *** ../vim-5.7.21/src/screen.c Sat Aug 5 15:43:46 2000 | |
14 | --- src/screen.c Mon Jan 8 11:46:10 2001 | |
15 | *************** | |
16 | *** 2923,2933 **** | |
17 | getvcol(wp, &wp->w_cursor, NULL, &virtcol, NULL); | |
18 | wp->w_p_list = TRUE; | |
19 | } | |
20 | ! if (virtcol == (colnr_t)(!(State & INSERT) && empty_line | |
21 | ! ? 0 : (int)wp->w_cursor.col)) | |
22 | ! { | |
23 | break; | |
24 | - } | |
25 | num = (long)virtcol + 1; | |
26 | break; | |
27 | ||
28 | --- 2923,2933 ---- | |
29 | getvcol(wp, &wp->w_cursor, NULL, &virtcol, NULL); | |
30 | wp->w_p_list = TRUE; | |
31 | } | |
32 | ! /* Don't display %V if it's the same as %c. */ | |
33 | ! if (opt == STL_VIRTCOL_ALT | |
34 | ! && (virtcol == (colnr_t)(!(State & INSERT) && empty_line | |
35 | ! ? 0 : (int)wp->w_cursor.col))) | |
36 | break; | |
37 | num = (long)virtcol + 1; | |
38 | break; | |
39 | ||
40 | *** ../vim-5.7.21/src/version.c Mon Jan 8 11:48:40 2001 | |
41 | --- src/version.c Mon Jan 8 11:48:24 2001 | |
42 | *************** | |
43 | *** 439,440 **** | |
44 | --- 439,442 ---- | |
45 | { /* Add new patch number below this line */ | |
46 | + /**/ | |
47 | + 22, | |
48 | /**/ | |
49 | ||
50 | -- | |
51 | ### Hiroshima 45, Chernobyl 86, Windows 95 ### | |
52 | ||
53 | /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ | |
54 | ((( Creator of Vim - http://www.vim.org -- ftp://ftp.vim.org/pub/vim ))) | |
55 | \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org /// |