From 255c45b30b641deb0fffabd8db31675fb106e0f8 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Tue, 10 Aug 2021 21:29:33 -0400 Subject: [PATCH] Since we're modifying the clipboard, actually makes way more sense to use this hash. --- data/core/commands/doc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/commands/doc.lua b/data/core/commands/doc.lua index 0a751e77..a571b1bb 100644 --- a/data/core/commands/doc.lua +++ b/data/core/commands/doc.lua @@ -80,7 +80,7 @@ local function cut_or_copy(delete) end end if #doc().cursor_clipboard > 1 then - doc().cursor_clipboard["hash"] = system.hash(system.get_clipboard()) + doc().cursor_clipboard["hash"] = system.hash(full_text) end system.set_clipboard(full_text) end