From ee781fc1b02f97acf7c91d688169930856ee7201 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Tue, 30 Sep 2025 20:43:29 +0200 Subject: [PATCH] fix(dap.hover): only trim trailing whitespace --- lua/ow/dap/hover/content.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/ow/dap/hover/content.lua b/lua/ow/dap/hover/content.lua index f810a14..e60f868 100644 --- a/lua/ow/dap/hover/content.lua +++ b/lua/ow/dap/hover/content.lua @@ -108,7 +108,8 @@ end ---@return string[] function Content:get_lines() - return vim.split(vim.trim(self.text), "\n") + local text = self.text:gsub("%s+$", "") + return vim.split(text, "\n") end ---@param ns_id integer