From 32f30ddb784bbe17414c6e1bb207b316e6b380fc Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 21 Jul 2024 14:50:58 +0800 Subject: [PATCH] fix(cpicker): remove extra space --- bundle/cpicker.nvim/lua/cpicker.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundle/cpicker.nvim/lua/cpicker.lua b/bundle/cpicker.nvim/lua/cpicker.lua index cf3c197a6..0e114c406 100644 --- a/bundle/cpicker.nvim/lua/cpicker.lua +++ b/bundle/cpicker.nvim/lua/cpicker.lua @@ -88,8 +88,8 @@ end local function copy_color() local from, to = vim.regex(table.concat(vim.tbl_map(function(t) return t[2] end, color_code_regex), '\\|')):match_str(vim.fn.getline('.')) if from then - vim.fn.setreg('+', string.sub(vim.fn.getline('.'), from, to + 1)) - notify.notify('copied:' .. string.sub(vim.fn.getline('.'), from, to + 1)) + vim.fn.setreg('+', string.sub(vim.fn.getline('.'), from, to)) + notify.notify('copied:' .. string.sub(vim.fn.getline('.'), from, to)) end end