Skip to content

Commit

Permalink
Merge 91450f1 into a4d13de
Browse files Browse the repository at this point in the history
  • Loading branch information
haya14busa committed Apr 10, 2016
2 parents a4d13de + 91450f1 commit 4e21f1f
Show file tree
Hide file tree
Showing 6 changed files with 307 additions and 168 deletions.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1977,7 +1977,6 @@ test1 \
test_listlbr_utf8 \
test_mapping \
test_marks \
test_match_conceal \
test_nested_function \
test_options \
test_ruby \
Expand Down Expand Up @@ -2024,6 +2023,7 @@ test_arglist \
test_json \
test_langmap \
test_lispwords \
test_matchadd_conceal \
test_menu \
test_packadd \
test_partial \
Expand Down
15 changes: 8 additions & 7 deletions src/screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -3057,8 +3057,8 @@ win_line(
wrapping */
int vcol_off = 0; /* offset for concealed characters */
int did_wcol = FALSE;
int match_conc = FALSE; /* cchar for match functions */
int has_match_conc = FALSE; /* match wants to conceal */
int match_conc = 0; /* cchar for match functions */
int has_match_conc = 0; /* match wants to conceal */
int old_boguscols = 0;
# define VCOL_HLC (vcol - vcol_off)
# define FIX_FOR_BOGUSCOLS \
Expand Down Expand Up @@ -3595,7 +3595,7 @@ win_line(
for (;;)
{
#ifdef FEAT_CONCEAL
has_match_conc = FALSE;
has_match_conc = 0;
#endif
/* Skip this quickly when working on the text. */
if (draw_state != WL_LINE)
Expand Down Expand Up @@ -3944,11 +3944,12 @@ win_line(
if (cur != NULL && syn_name2id((char_u *)"Conceal")
== cur->hlg_id)
{
has_match_conc = TRUE;
has_match_conc =
v == (long)shl->startcol ? 2 : 1;
match_conc = cur->conceal_char;
}
else
has_match_conc = match_conc = FALSE;
has_match_conc = match_conc = 0;
#endif
}
else if (v == (long)shl->endcol)
Expand Down Expand Up @@ -4905,12 +4906,12 @@ win_line(
if ( wp->w_p_cole > 0
&& (wp != curwin || lnum != wp->w_cursor.lnum ||
conceal_cursor_line(wp) )
&& ( (syntax_flags & HL_CONCEAL) != 0 || has_match_conc)
&& ( (syntax_flags & HL_CONCEAL) != 0 || has_match_conc > 0)
&& !(lnum_in_visual_area
&& vim_strchr(wp->w_p_cocu, 'v') == NULL))
{
char_attr = conceal_attr;
if (prev_syntax_id != syntax_seqnr
if ((prev_syntax_id != syntax_seqnr || has_match_conc > 1)
&& (syn_get_sub_char() != NUL || match_conc
|| wp->w_p_cole == 1)
&& wp->w_p_cole != 3)
Expand Down
2 changes: 1 addition & 1 deletion src/testdir/Make_all.mak
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ SCRIPTS_ALL = \
test_listlbr.out \
test_mapping.out \
test_marks.out \
test_match_conceal.out \
test_nested_function.out \
test_options.out \
test_ruby.out \
Expand Down Expand Up @@ -175,6 +174,7 @@ NEW_TESTS = test_arglist.res \
test_increment.res \
test_json.res \
test_langmap.res \
test_matchadd_conceal.res \
test_packadd.res \
test_perl.res \
test_quickfix.res \
Expand Down
159 changes: 0 additions & 159 deletions src/testdir/test_match_conceal.in

This file was deleted.

Loading

0 comments on commit 4e21f1f

Please sign in to comment.