A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/7735163652cd9082ef89cb31707ca77df12f7b70 below:

do not do syntax highlighting at filler or folded lines … · neovim/neovim@7735163 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+23

-1

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+23

-1

lines changed Original file line number Diff line number Diff line change

@@ -2160,7 +2160,8 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool noc

2160 2160

// To speed up the loop below, set extra_check when there is linebreak,

2161 2161

// trailing white space and/or syntax processing to be done.

2162 2162

extra_check = wp->w_p_lbr;

2163 -

if (syntax_present(wp) && !wp->w_s->b_syn_error && !wp->w_s->b_syn_slow) {

2163 +

if (syntax_present(wp) && !wp->w_s->b_syn_error && !wp->w_s->b_syn_slow

2164 +

&& !has_fold && !end_fill) {

2164 2165

// Prepare for syntax highlighting in this line. When there is an

2165 2166

// error, stop syntax highlighting.

2166 2167

save_did_emsg = did_emsg;

Original file line number Diff line number Diff line change

@@ -1111,6 +1111,27 @@ if (h->n_buckets < new_n_buckets) { // expand

1111 1111

]]}

1112 1112

end)

1113 1113 1114 +

it('does not cause syntax ml_get error at the end of a buffer #17816', function()

1115 +

command([[syntax region foo keepend start='^foo' end='^$']])

1116 +

command('syntax sync minlines=100')

1117 +

insert('foo')

1118 +

meths.buf_set_extmark(0, ns, 0, 0, {virt_lines = {{{'bar', 'Comment'}}}})

1119 +

screen:expect([[

1120 +

fo^o |

1121 +

{6:bar} |

1122 +

{1:~ }|

1123 +

{1:~ }|

1124 +

{1:~ }|

1125 +

{1:~ }|

1126 +

{1:~ }|

1127 +

{1:~ }|

1128 +

{1:~ }|

1129 +

{1:~ }|

1130 +

{1:~ }|

1131 +

|

1132 +

]])

1133 +

end)

1134 + 1114 1135

it('works with a block scrolling up', function()

1115 1136

screen:try_resize(30, 7)

1116 1137

insert("aa\nbb\ncc\ndd\nee\nff\ngg\nhh")

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4