Skip to content

Commit fc015b7

Browse files
committed
fix: resolve stutter when typing over virtual text
Introduced in c0d1824 Fixes #471
1 parent 089ec63 commit fc015b7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lua/copilot/suggestion/init.lua

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,6 @@ local function get_current_suggestion(ctx)
274274
return nil
275275
end
276276

277-
-- if choice.range.start.character ~= 0 then
278-
-- -- unexpected range
279-
-- return nil
280-
-- end
281-
282277
return choice
283278
end)
284279

@@ -500,7 +495,7 @@ local function schedule(ctx)
500495
stop_timer()
501496
end
502497

503-
-- update_preview(ctx)
498+
update_preview(ctx)
504499
local bufnr = vim.api.nvim_get_current_buf()
505500
copilot._copilot_timer = vim.fn.timer_start(copilot.debounce, function(timer)
506501
logger.trace("suggestion schedule timer", bufnr)

0 commit comments

Comments
 (0)