633 current 2024-05-14 22:00:51 24.05.20240512.2057814 6.8.6-zen1 *

This commit is contained in:
zackartz 2024-05-14 22:00:57 -04:00
parent 81deeab6e3
commit cb2645a46c
No known key found for this signature in database
GPG key ID: 5B53E53A9A514DBA

View file

@ -30,6 +30,7 @@ end
M.freeze_selection = function()
local path = "./._freeze.png"
vim.cmd("normal! gv")
-- Retrieve buffer ID for the current buffer
local buf = vim.api.nvim_get_current_buf()
@ -41,9 +42,6 @@ M.freeze_selection = function()
local start_line = start_pos[1]
local end_line = end_pos[1]
-- Exit visual mode and return to normal mode
vim.cmd("normal! gv")
-- Execute the 'Freeze' command on the selected range
vim.cmd(start_line .. "," .. end_line .. "Freeze")