A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/neovim/neovim/commit/23dcef92695c0042323d9cbf8d559f04741d2f00 below:

always update window highlight if highlight changed · neovim/neovim@23dcef9 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+21

-1

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+21

-1

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

@@ -451,9 +451,11 @@ int update_screen(int type)

451 451

// reset cmdline_row now (may have been changed temporarily)

452 452

compute_cmdrow();

453 453 454 +

bool hl_changed = false;

454 455

// Check for changed highlighting

455 456

if (need_highlight_changed) {

456 457

highlight_changed();

458 +

hl_changed = true;

457 459

}

458 460 459 461

if (type == CLEAR) { // first clear screen

@@ -554,7 +556,7 @@ int update_screen(int type)

554 556

* buffer. Each buffer must only be done once.

555 557

*/

556 558

FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {

557 -

update_window_hl(wp, type >= NOT_VALID);

559 +

update_window_hl(wp, type >= NOT_VALID || hl_changed);

558 560 559 561

buf_T *buf = wp->w_buffer;

560 562

if (buf->b_mod_set) {

Original file line number Diff line number Diff line change

@@ -276,6 +276,24 @@ describe('highlight defaults', function()

276 276

]], {[0] = {bold=true, foreground=Screen.colors.Blue}})

277 277

end)

278 278 279 +

it('linking updates window highlight immediately #16552', function()

280 +

screen:try_resize(53, 4)

281 +

screen:expect([[

282 +

^ |

283 +

{0:~ }|

284 +

{0:~ }|

285 +

|

286 +

]], {[0] = {bold=true, foreground=Screen.colors.Blue}})

287 +

feed_command("hi NonTextAlt guifg=Red")

288 +

feed_command("hi! link NonText NonTextAlt")

289 +

screen:expect([[

290 +

^ |

291 +

{0:~ }|

292 +

{0:~ }|

293 +

:hi! link NonText NonTextAlt |

294 +

]], {[0] = {foreground=Screen.colors.Red}})

295 +

end)

296 + 279 297

it('Cursor after `:hi clear|syntax reset` #6508', function()

280 298

command('highlight clear|syntax reset')

281 299

eq('guifg=bg guibg=fg', eval([[matchstr(execute('hi Cursor'), '\v(gui|cterm).*$')]]))

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