We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46a97dc commit 5a08ab9Copy full SHA for 5a08ab9
lua/copilot/suggestion/init.lua
@@ -305,10 +305,13 @@ local function update_preview(ctx)
305
set_ctx_suggestion_text(ctx.choice, suggest_text)
306
end
307
308
+ local has_control_chars = string.find(suggestion_line1, "%c") ~= nil or #displayLines > 1
309
+
310
local extmark = {
311
id = copilot.extmark_id,
312
virt_text = { { suggestion_line1, hl_group.CopilotSuggestion } },
- virt_text_pos = "inline",
313
+ -- inline does not support system control characters
314
+ virt_text_pos = has_control_chars and "eol" or "inline",
315
}
316
317
if #displayLines > 1 then
0 commit comments