Skip to content

Commit

Permalink
fix: find next request line when the verb is 'DELETE'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Luis Lavado committed Apr 12, 2023
1 parent 0fdb69f commit 3ee124d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/rest-nvim/request/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ local function end_request(bufnr, linenumber)
end
utils.move_cursor(bufnr, linenumber)

local next = vim.fn.search("^GET\\|^POST\\|^PUT\\|^PATCH\\|^DELETE\\^###\\", "cn",
local next = vim.fn.search("^GET\\|^POST\\|^PUT\\|^PATCH\\|^DELETE\\|^###\\", "cn",
vim.fn.line("$"))

-- restore cursor position
Expand Down

0 comments on commit 3ee124d

Please sign in to comment.