Skip to content

Commit

Permalink
fix(split): remove redundant buffer name setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jellydn committed Aug 3, 2024
1 parent 32c9fdd commit 88dd2ff
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lua/hurl/split.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ local M = {}
---@param type 'json' | 'html' | 'xml' | 'text'
M.show = function(data, type)
local function quit()
-- set buffer name to empty string so it wouldn't conflict when next time buffer opened
vim.api.nvim_buf_set_name(split.bufnr, '')
vim.cmd('q')
split:unmount()
end
Expand All @@ -30,8 +28,6 @@ M.show = function(data, type)
-- E.g: { title = "Hurl Nvim", ft = "hurl-nvim" },
vim.bo[split.bufnr].filetype = 'hurl-nvim'

vim.api.nvim_buf_set_name(split.bufnr, 'hurl-response')

if _HURL_GLOBAL_CONFIG.auto_close then
-- unmount component when buffer is closed
split:on(event.BufLeave, function()
Expand Down

0 comments on commit 88dd2ff

Please sign in to comment.