624 current 2024-05-14 21:37:41 24.05.20240512.2057814 6.8.6-zen1 *

This commit is contained in:
zackartz 2024-05-14 21:37:46 -04:00
parent 4bc4f44f74
commit 1e187a9ef3
No known key found for this signature in database
GPG key ID: 5B53E53A9A514DBA

View file

@ -21,7 +21,7 @@ M.freeze = function()
local path = "./._freeze.png"
-- Execute the 'Freeze' command on the selected range
vim.cmd("Freeze")
vim.cmd("<cmd>Freeze<CR>")
-- Run the shell command 'wl-copy <path>' after 'Freeze' completes
vim.fn.system("wl-copy < " .. path)
@ -39,7 +39,7 @@ M.freeze_selection = function()
local end_line = vim.fn.getpos("'>")[2] -- line number of the end of selection
-- Execute the 'Freeze' command on the selected range
vim.cmd(start_line .. "," .. end_line .. "Freeze")
vim.cmd('<cmd>' .. start_line .. ',' .. end_line .. 'Freeze<CR>')
-- Run the shell command 'wl-copy <path>' after 'Freeze' completes
vim.fn.system("wl-copy < " .. path)