From cb2645a46c7b1506d023c98827d161d3e2b9afee Mon Sep 17 00:00:00 2001 From: zackartz Date: Tue, 14 May 2024 22:00:57 -0400 Subject: [PATCH] 633 current 2024-05-14 22:00:51 24.05.20240512.2057814 6.8.6-zen1 * --- modules/home-manager/vim/config/lua/utils/functions.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/home-manager/vim/config/lua/utils/functions.lua b/modules/home-manager/vim/config/lua/utils/functions.lua index ab383ef..963c339 100644 --- a/modules/home-manager/vim/config/lua/utils/functions.lua +++ b/modules/home-manager/vim/config/lua/utils/functions.lua @@ -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")