Skip to content

Commit

Permalink
Check if the buffer is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
luozhiya committed Jun 4, 2024
1 parent 6143a21 commit 1283fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/fittencode/views/chat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ local function set_option_value_win(window)
end

function M:create()
if self.buffer then
if self.buffer and api.nvim_buf_is_valid(self.buffer) then
return
end

Expand Down

0 comments on commit 1283fb6

Please sign in to comment.