From 60652ba2962af1c127b4d84289655e1143c4d0f8 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Thu, 14 Mar 2024 03:11:15 +0000 Subject: [PATCH] feat: Updated lua/hurl/main.lua --- lua/hurl/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/hurl/main.lua b/lua/hurl/main.lua index 068310c..ba5f59a 100644 --- a/lua/hurl/main.lua +++ b/lua/hurl/main.lua @@ -369,7 +369,7 @@ function M.setup() -- Run request to current entry if there is a HTTP method utils.create_cmd('HurlRunnerToEntry', function(opts) - local result = http.find_hurl_entry_positions_in_buffer() + local result = http.find_closest_hurl_entry_position() if result.current > 0 then opts.fargs = opts.fargs or {} opts.fargs = vim.list_extend(opts.fargs, { '--to-entry', result.current })