From 7289789f808249b86c820451f0f669cb7d6bb779 Mon Sep 17 00:00:00 2001 From: eumis Date: Thu, 27 Nov 2025 15:57:14 +0100 Subject: [PATCH] fixed current buffer for run from telescope --- lua/telescope/_extensions/tasks.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/telescope/_extensions/tasks.lua b/lua/telescope/_extensions/tasks.lua index d3e2f57..0f6273d 100644 --- a/lua/telescope/_extensions/tasks.lua +++ b/lua/telescope/_extensions/tasks.lua @@ -48,8 +48,8 @@ local define_preview = function(self, entry, _) end local attach_mappings = function(_, map) - map("i", "", function() require "tasks".run(action_state.get_selected_entry().value.name) end) - map("n", "", function() require "tasks".run(action_state.get_selected_entry().value.name) end) + map("i", "", function() require "tasks".run(action_state.get_selected_entry().value.name, vim.fn.bufnr("#")) end) + map("n", "", function() require "tasks".run(action_state.get_selected_entry().value.name, vim.fn.bufnr("#")) end) map("i", "", function() require "tasks".open(action_state.get_selected_entry().value.name) end) map("n", "", function() require "tasks".open(action_state.get_selected_entry().value.name) end)