|
Karsten Hopp |
1c2452 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
1c2452 |
Subject: Patch 7.3.479
|
|
Karsten Hopp |
1c2452 |
Fcc: outbox
|
|
Karsten Hopp |
1c2452 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
1c2452 |
Mime-Version: 1.0
|
|
Karsten Hopp |
1c2452 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
1c2452 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
1c2452 |
------------
|
|
Karsten Hopp |
1c2452 |
|
|
Karsten Hopp |
1c2452 |
Patch 7.3.479
|
|
Karsten Hopp |
1c2452 |
Problem: When 'cursorline' is set the line number highlighting can't be set
|
|
Karsten Hopp |
1c2452 |
separately.
|
|
Karsten Hopp |
1c2452 |
Solution: Add "CursorLineNr". (Howard Buchholz)
|
|
Karsten Hopp |
1c2452 |
Files: src/option.c, src/screen.c, src/syntax.c, src/vim.h
|
|
Karsten Hopp |
1c2452 |
|
|
Karsten Hopp |
1c2452 |
|
|
Karsten Hopp |
1c2452 |
*** ../vim-7.3.478/src/option.c 2012-02-29 13:51:32.000000000 +0100
|
|
Karsten Hopp |
1c2452 |
--- src/option.c 2012-03-23 15:44:57.000000000 +0100
|
|
Karsten Hopp |
1c2452 |
***************
|
|
Karsten Hopp |
1c2452 |
*** 460,468 ****
|
|
Karsten Hopp |
1c2452 |
#if defined(FEAT_DIFF) || defined(FEAT_FOLDING) || defined(FEAT_SPELL) \
|
|
Karsten Hopp |
1c2452 |
|| defined(FEAT_VERTSPLIT) || defined(FEAT_CLIPBOARD) \
|
|
Karsten Hopp |
1c2452 |
|| defined(FEAT_INS_EXPAND) || defined(FEAT_SYN_HL) || defined(FEAT_CONCEAL)
|
|
Karsten Hopp |
1c2452 |
! # define HIGHLIGHT_INIT "8:SpecialKey,@:NonText,d:Directory,e:ErrorMsg,i:IncSearch,l:Search,m:MoreMsg,M:ModeMsg,n:LineNr,r:Question,s:StatusLine,S:StatusLineNC,c:VertSplit,t:Title,v:Visual,V:VisualNOS,w:WarningMsg,W:WildMenu,f:Folded,F:FoldColumn,A:DiffAdd,C:DiffChange,D:DiffDelete,T:DiffText,>:SignColumn,-:Conceal,B:SpellBad,P:SpellCap,R:SpellRare,L:SpellLocal,+:Pmenu,=:PmenuSel,x:PmenuSbar,X:PmenuThumb,*:TabLine,#:TabLineSel,_:TabLineFill,!:CursorColumn,.:CursorLine,o:ColorColumn"
|
|
Karsten Hopp |
1c2452 |
#else
|
|
Karsten Hopp |
1c2452 |
! # define HIGHLIGHT_INIT "8:SpecialKey,@:NonText,d:Directory,e:ErrorMsg,i:IncSearch,l:Search,m:MoreMsg,M:ModeMsg,n:LineNr,r:Question,s:StatusLine,S:StatusLineNC,t:Title,v:Visual,w:WarningMsg,W:WildMenu,>:SignColumn,*:TabLine,#:TabLineSel,_:TabLineFill"
|
|
Karsten Hopp |
1c2452 |
#endif
|
|
Karsten Hopp |
1c2452 |
|
|
Karsten Hopp |
1c2452 |
/*
|
|
Karsten Hopp |
1c2452 |
--- 460,468 ----
|
|
Karsten Hopp |
1c2452 |
#if defined(FEAT_DIFF) || defined(FEAT_FOLDING) || defined(FEAT_SPELL) \
|
|
Karsten Hopp |
1c2452 |
|| defined(FEAT_VERTSPLIT) || defined(FEAT_CLIPBOARD) \
|
|
Karsten Hopp |
1c2452 |
|| defined(FEAT_INS_EXPAND) || defined(FEAT_SYN_HL) || defined(FEAT_CONCEAL)
|
|
Karsten Hopp |
1c2452 |
! # define HIGHLIGHT_INIT "8:SpecialKey,@:NonText,d:Directory,e:ErrorMsg,i:IncSearch,l:Search,m:MoreMsg,M:ModeMsg,n:LineNr,N:CursorLineNr,r:Question,s:StatusLine,S:StatusLineNC,c:VertSplit,t:Title,v:Visual,V:VisualNOS,w:WarningMsg,W:WildMenu,f:Folded,F:FoldColumn,A:DiffAdd,C:DiffChange,D:DiffDelete,T:DiffText,>:SignColumn,-:Conceal,B:SpellBad,P:SpellCap,R:SpellRare,L:SpellLocal,+:Pmenu,=:PmenuSel,x:PmenuSbar,X:PmenuThumb,*:TabLine,#:TabLineSel,_:TabLineFill,!:CursorColumn,.:CursorLine,o:ColorColumn"
|
|
Karsten Hopp |
1c2452 |
#else
|
|
Karsten Hopp |
1c2452 |
! # define HIGHLIGHT_INIT "8:SpecialKey,@:NonText,d:Directory,e:ErrorMsg,i:IncSearch,l:Search,m:MoreMsg,M:ModeMsg,n:LineNr,N:CursorLineNr,r:Question,s:StatusLine,S:StatusLineNC,t:Title,v:Visual,w:WarningMsg,W:WildMenu,>:SignColumn,*:TabLine,#:TabLineSel,_:TabLineFill"
|
|
Karsten Hopp |
1c2452 |
#endif
|
|
Karsten Hopp |
1c2452 |
|
|
Karsten Hopp |
1c2452 |
/*
|
|
Karsten Hopp |
1c2452 |
*** ../vim-7.3.478/src/screen.c 2012-03-16 19:07:54.000000000 +0100
|
|
Karsten Hopp |
1c2452 |
--- src/screen.c 2012-03-23 16:09:15.000000000 +0100
|
|
Karsten Hopp |
1c2452 |
***************
|
|
Karsten Hopp |
1c2452 |
*** 3501,3509 ****
|
|
Karsten Hopp |
1c2452 |
char_attr = hl_attr(HLF_N);
|
|
Karsten Hopp |
1c2452 |
#ifdef FEAT_SYN_HL
|
|
Karsten Hopp |
1c2452 |
/* When 'cursorline' is set highlight the line number of
|
|
Karsten Hopp |
1c2452 |
! * the current line differently. */
|
|
Karsten Hopp |
1c2452 |
if (wp->w_p_cul && lnum == wp->w_cursor.lnum)
|
|
Karsten Hopp |
1c2452 |
! char_attr = hl_combine_attr(hl_attr(HLF_CUL), char_attr);
|
|
Karsten Hopp |
1c2452 |
#endif
|
|
Karsten Hopp |
1c2452 |
}
|
|
Karsten Hopp |
1c2452 |
}
|
|
Karsten Hopp |
1c2452 |
--- 3501,3511 ----
|
|
Karsten Hopp |
1c2452 |
char_attr = hl_attr(HLF_N);
|
|
Karsten Hopp |
1c2452 |
#ifdef FEAT_SYN_HL
|
|
Karsten Hopp |
1c2452 |
/* When 'cursorline' is set highlight the line number of
|
|
Karsten Hopp |
1c2452 |
! * the current line differently.
|
|
Karsten Hopp |
1c2452 |
! * TODO: Can we use CursorLine instead of CursorLineNr
|
|
Karsten Hopp |
1c2452 |
! * when CursorLineNr isn't set? */
|
|
Karsten Hopp |
1c2452 |
if (wp->w_p_cul && lnum == wp->w_cursor.lnum)
|
|
Karsten Hopp |
1c2452 |
! char_attr = hl_attr(HLF_CLN);
|
|
Karsten Hopp |
1c2452 |
#endif
|
|
Karsten Hopp |
1c2452 |
}
|
|
Karsten Hopp |
1c2452 |
}
|
|
Karsten Hopp |
1c2452 |
*** ../vim-7.3.478/src/syntax.c 2012-03-16 20:16:42.000000000 +0100
|
|
Karsten Hopp |
1c2452 |
--- src/syntax.c 2012-03-23 16:23:57.000000000 +0100
|
|
Karsten Hopp |
1c2452 |
***************
|
|
Karsten Hopp |
1c2452 |
*** 6538,6543 ****
|
|
Karsten Hopp |
1c2452 |
--- 6538,6545 ----
|
|
Karsten Hopp |
1c2452 |
"Directory term=bold ctermfg=DarkBlue guifg=Blue"),
|
|
Karsten Hopp |
1c2452 |
CENT("LineNr term=underline ctermfg=Brown",
|
|
Karsten Hopp |
1c2452 |
"LineNr term=underline ctermfg=Brown guifg=Brown"),
|
|
Karsten Hopp |
1c2452 |
+ CENT("CursorLineNr term=bold ctermfg=Brown",
|
|
Karsten Hopp |
1c2452 |
+ "CursorLineNr term=bold ctermfg=Brown gui=bold guifg=Brown"),
|
|
Karsten Hopp |
1c2452 |
CENT("MoreMsg term=bold ctermfg=DarkGreen",
|
|
Karsten Hopp |
1c2452 |
"MoreMsg term=bold ctermfg=DarkGreen gui=bold guifg=SeaGreen"),
|
|
Karsten Hopp |
1c2452 |
CENT("Question term=standout ctermfg=DarkGreen",
|
|
Karsten Hopp |
1c2452 |
***************
|
|
Karsten Hopp |
1c2452 |
*** 6626,6631 ****
|
|
Karsten Hopp |
1c2452 |
--- 6628,6635 ----
|
|
Karsten Hopp |
1c2452 |
"Directory term=bold ctermfg=LightCyan guifg=Cyan"),
|
|
Karsten Hopp |
1c2452 |
CENT("LineNr term=underline ctermfg=Yellow",
|
|
Karsten Hopp |
1c2452 |
"LineNr term=underline ctermfg=Yellow guifg=Yellow"),
|
|
Karsten Hopp |
1c2452 |
+ CENT("CursorLineNr term=bold ctermfg=Yellow",
|
|
Karsten Hopp |
1c2452 |
+ "CursorLineNr term=bold ctermfg=Yellow gui=bold guifg=Yellow"),
|
|
Karsten Hopp |
1c2452 |
CENT("MoreMsg term=bold ctermfg=LightGreen",
|
|
Karsten Hopp |
1c2452 |
"MoreMsg term=bold ctermfg=LightGreen gui=bold guifg=SeaGreen"),
|
|
Karsten Hopp |
1c2452 |
CENT("Question term=standout ctermfg=LightGreen",
|
|
Karsten Hopp |
1c2452 |
*** ../vim-7.3.478/src/vim.h 2012-03-07 19:16:49.000000000 +0100
|
|
Karsten Hopp |
1c2452 |
--- src/vim.h 2012-03-23 15:44:57.000000000 +0100
|
|
Karsten Hopp |
1c2452 |
***************
|
|
Karsten Hopp |
1c2452 |
*** 1318,1323 ****
|
|
Karsten Hopp |
1c2452 |
--- 1318,1324 ----
|
|
Karsten Hopp |
1c2452 |
, HLF_M /* "--More--" message */
|
|
Karsten Hopp |
1c2452 |
, HLF_CM /* Mode (e.g., "-- INSERT --") */
|
|
Karsten Hopp |
1c2452 |
, HLF_N /* line number for ":number" and ":#" commands */
|
|
Karsten Hopp |
1c2452 |
+ , HLF_CLN /* current line number */
|
|
Karsten Hopp |
1c2452 |
, HLF_R /* return to continue message and yes/no questions */
|
|
Karsten Hopp |
1c2452 |
, HLF_S /* status lines */
|
|
Karsten Hopp |
1c2452 |
, HLF_SNC /* status lines of not-current windows */
|
|
Karsten Hopp |
1c2452 |
***************
|
|
Karsten Hopp |
1c2452 |
*** 1355,1361 ****
|
|
Karsten Hopp |
1c2452 |
/* The HL_FLAGS must be in the same order as the HLF_ enums!
|
|
Karsten Hopp |
1c2452 |
* When changing this also adjust the default for 'highlight'. */
|
|
Karsten Hopp |
1c2452 |
#define HL_FLAGS {'8', '@', 'd', 'e', 'h', 'i', 'l', 'm', 'M', \
|
|
Karsten Hopp |
1c2452 |
! 'n', 'r', 's', 'S', 'c', 't', 'v', 'V', 'w', 'W', \
|
|
Karsten Hopp |
1c2452 |
'f', 'F', 'A', 'C', 'D', 'T', '-', '>', \
|
|
Karsten Hopp |
1c2452 |
'B', 'P', 'R', 'L', \
|
|
Karsten Hopp |
1c2452 |
'+', '=', 'x', 'X', '*', '#', '_', '!', '.', 'o'}
|
|
Karsten Hopp |
1c2452 |
--- 1356,1362 ----
|
|
Karsten Hopp |
1c2452 |
/* The HL_FLAGS must be in the same order as the HLF_ enums!
|
|
Karsten Hopp |
1c2452 |
* When changing this also adjust the default for 'highlight'. */
|
|
Karsten Hopp |
1c2452 |
#define HL_FLAGS {'8', '@', 'd', 'e', 'h', 'i', 'l', 'm', 'M', \
|
|
Karsten Hopp |
1c2452 |
! 'n', 'N', 'r', 's', 'S', 'c', 't', 'v', 'V', 'w', 'W', \
|
|
Karsten Hopp |
1c2452 |
'f', 'F', 'A', 'C', 'D', 'T', '-', '>', \
|
|
Karsten Hopp |
1c2452 |
'B', 'P', 'R', 'L', \
|
|
Karsten Hopp |
1c2452 |
'+', '=', 'x', 'X', '*', '#', '_', '!', '.', 'o'}
|
|
Karsten Hopp |
1c2452 |
*** ../vim-7.3.478/src/version.c 2012-03-23 15:36:57.000000000 +0100
|
|
Karsten Hopp |
1c2452 |
--- src/version.c 2012-03-23 16:16:41.000000000 +0100
|
|
Karsten Hopp |
1c2452 |
***************
|
|
Karsten Hopp |
1c2452 |
*** 716,717 ****
|
|
Karsten Hopp |
1c2452 |
--- 716,719 ----
|
|
Karsten Hopp |
1c2452 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
1c2452 |
+ /**/
|
|
Karsten Hopp |
1c2452 |
+ 479,
|
|
Karsten Hopp |
1c2452 |
/**/
|
|
Karsten Hopp |
1c2452 |
|
|
Karsten Hopp |
1c2452 |
--
|
|
Karsten Hopp |
1c2452 |
If you're sending someone Styrofoam, what do you pack it in?
|
|
Karsten Hopp |
1c2452 |
|
|
Karsten Hopp |
1c2452 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
1c2452 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
1c2452 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
1c2452 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|