633 current 2024-05-14 22:00:51 24.05.20240512.2057814 6.8.6-zen1 *
This commit is contained in:
parent
81deeab6e3
commit
cb2645a46c
1 changed files with 1 additions and 3 deletions
|
|
@ -30,6 +30,7 @@ end
|
||||||
M.freeze_selection = function()
|
M.freeze_selection = function()
|
||||||
local path = "./._freeze.png"
|
local path = "./._freeze.png"
|
||||||
|
|
||||||
|
vim.cmd("normal! gv")
|
||||||
-- Retrieve buffer ID for the current buffer
|
-- Retrieve buffer ID for the current buffer
|
||||||
local buf = vim.api.nvim_get_current_buf()
|
local buf = vim.api.nvim_get_current_buf()
|
||||||
|
|
||||||
|
|
@ -41,9 +42,6 @@ M.freeze_selection = function()
|
||||||
local start_line = start_pos[1]
|
local start_line = start_pos[1]
|
||||||
local end_line = end_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
|
-- Execute the 'Freeze' command on the selected range
|
||||||
vim.cmd(start_line .. "," .. end_line .. "Freeze")
|
vim.cmd(start_line .. "," .. end_line .. "Freeze")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue