fix: cannot change buf name (#66)

This commit is contained in:
yetone 2024-08-18 18:09:03 +08:00 committed by GitHub
parent 58af2b7f92
commit 43beba9957
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,7 +47,9 @@ function View:setup(split_command, size)
api.nvim_set_option_value("winhl", "", { win = self.win }) api.nvim_set_option_value("winhl", "", { win = self.win })
-- buffer stuff -- buffer stuff
xpcall(function()
api.nvim_buf_set_name(self.buf, RESULT_BUF_NAME) api.nvim_buf_set_name(self.buf, RESULT_BUF_NAME)
end, function(err) end)
return self return self
end end