mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
Never hide text for conceal in cursor line. Do hide when there is
highlighting.
This commit is contained in:
@@ -1724,10 +1724,10 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
2 Concealed text is completely hidden unless it has a
|
2 Concealed text is completely hidden unless it has a
|
||||||
custom replacement character defined (see
|
custom replacement character defined (see
|
||||||
|:syn-cchar|.
|
|:syn-cchar|.
|
||||||
3 Concealed text is completely hidden. Note: when
|
3 Concealed text is completely hidden.
|
||||||
moving the cursor after concealed items the position
|
|
||||||
will be wrong.
|
|
||||||
|
|
||||||
|
Note: in the cursor line concealed text is not hidden, so that you can
|
||||||
|
edit and copy the text.
|
||||||
|
|
||||||
*'confirm'* *'cf'* *'noconfirm'* *'nocf'*
|
*'confirm'* *'cf'* *'noconfirm'* *'nocf'*
|
||||||
'confirm' 'cf' boolean (default off)
|
'confirm' 'cf' boolean (default off)
|
||||||
|
@@ -4378,11 +4378,8 @@ win_line(wp, lnum, startrow, endrow, nochange)
|
|||||||
|
|
||||||
#ifdef FEAT_CONCEAL
|
#ifdef FEAT_CONCEAL
|
||||||
if ( wp->w_p_conc > 0
|
if ( wp->w_p_conc > 0
|
||||||
&& !area_highlighting
|
&& (lnum != wp->w_cursor.lnum || curwin != wp)
|
||||||
&& (lnum != wp->w_cursor.lnum
|
|
||||||
|| curwin != wp || wp->w_buffer->b_p_ma == FALSE)
|
|
||||||
&& (syntax_flags & HL_CONCEAL) != 0)
|
&& (syntax_flags & HL_CONCEAL) != 0)
|
||||||
|
|
||||||
{
|
{
|
||||||
char_attr = conceal_attr;
|
char_attr = conceal_attr;
|
||||||
if (first_conceal
|
if (first_conceal
|
||||||
|
Reference in New Issue
Block a user