fix: escape newlines in code action title (#1012)
This commit is contained in:
@@ -165,7 +165,7 @@ lsp.code_actions = function(opts)
|
||||
for _, result in pairs(response.result) do
|
||||
local entry = {
|
||||
idx = idx,
|
||||
command_title = result.title,
|
||||
command_title = result.title:gsub("\r\n", "\\r\\n"):gsub("\n", "\\n"),
|
||||
client_name = client and client.name or "",
|
||||
command = result,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user