A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/neovim/neovim/commit/3f2fbb824e8943f8851920eb375fbf70302658fd below:

ensure pending changes are flushed on skipped debounce (#17… · neovim/neovim@3f2fbb8 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+4

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+4

-1

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

@@ -413,8 +413,12 @@ do

413 413

return

414 414

end

415 415

local state = state_by_client[client.id]

416 +

changetracking._reset_timer(state)

416 417

local debounce = next_debounce(client.config.flags.debounce_text_changes or 150, state, bufnr)

417 418

if debounce == 0 then

419 +

if state.pending_change then

420 +

state.pending_change()

421 +

end

418 422

local changes = state.use_incremental_sync and incremental_changes(client) or full_changes()

419 423

client.notify("textDocument/didChange", {

420 424

textDocument = {

@@ -425,7 +429,6 @@ do

425 429

})

426 430

return

427 431

end

428 -

changetracking._reset_timer(state)

429 432

if state.use_incremental_sync then

430 433

-- This must be done immediately and cannot be delayed

431 434

-- The contents would further change and startline/endline may no longer fit

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