From d439863d271c1a383ecafee6d5e5910b8f71b3b2 Mon Sep 17 00:00:00 2001 From: jecaro Date: Thu, 15 Jan 2026 17:53:11 +0100 Subject: [PATCH] fix(actions): Copy hash to the unnamed register --- lua/diffview/scene/views/file_history/listeners.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/diffview/scene/views/file_history/listeners.lua b/lua/diffview/scene/views/file_history/listeners.lua index c10a4ff3..f4db4209 100644 --- a/lua/diffview/scene/views/file_history/listeners.lua +++ b/lua/diffview/scene/views/file_history/listeners.lua @@ -208,7 +208,7 @@ return function(view) if view.panel:is_focused() then local item = view.panel:get_item_at_cursor() if item then - vim.fn.setreg("+", item.commit.hash) + vim.fn.setreg('"', item.commit.hash) utils.info(string.format("Copied '%s' to the clipboard.", item.commit.hash)) end end