Mercurial > vim
comparison src/screen.c @ 3427:3db4282d5e6b v7.3.479
updated for version 7.3.479
Problem: When 'cursorline' is set the line number highlighting can't be set
separately.
Solution: Add "CursorLineNr". (Howard Buchholz)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 23 Mar 2012 16:25:17 +0100 |
parents | 8332129d9ae8 |
children | f52d2ea0f81c |
comparison
equal
deleted
inserted
replaced
3426:1e7e44ac2894 | 3427:3db4282d5e6b |
---|---|
3499 c_extra = ' '; | 3499 c_extra = ' '; |
3500 n_extra = number_width(wp) + 1; | 3500 n_extra = number_width(wp) + 1; |
3501 char_attr = hl_attr(HLF_N); | 3501 char_attr = hl_attr(HLF_N); |
3502 #ifdef FEAT_SYN_HL | 3502 #ifdef FEAT_SYN_HL |
3503 /* When 'cursorline' is set highlight the line number of | 3503 /* When 'cursorline' is set highlight the line number of |
3504 * the current line differently. */ | 3504 * the current line differently. |
3505 * TODO: Can we use CursorLine instead of CursorLineNr | |
3506 * when CursorLineNr isn't set? */ | |
3505 if (wp->w_p_cul && lnum == wp->w_cursor.lnum) | 3507 if (wp->w_p_cul && lnum == wp->w_cursor.lnum) |
3506 char_attr = hl_combine_attr(hl_attr(HLF_CUL), char_attr); | 3508 char_attr = hl_attr(HLF_CLN); |
3507 #endif | 3509 #endif |
3508 } | 3510 } |
3509 } | 3511 } |
3510 | 3512 |
3511 #if defined(FEAT_LINEBREAK) || defined(FEAT_DIFF) | 3513 #if defined(FEAT_LINEBREAK) || defined(FEAT_DIFF) |