From aa7c13ea365489ec4392b753df5369f805cb9499 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Thu, 5 Aug 2021 01:46:18 +0530 Subject: fix: escape newlines in code action title (#1012) --- lua/telescope/builtin/lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/telescope/builtin/lsp.lua b/lua/telescope/builtin/lsp.lua index 69b03d8..dccda5d 100644 --- a/lua/telescope/builtin/lsp.lua +++ b/lua/telescope/builtin/lsp.lua @@ -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, } -- cgit v1.2.3