Skip to content

Commit 1743ca6

Browse files
committed
Merge branch 'server-config-updated' into update-default-headers-and-welcome-message
2 parents 1e60f22 + db32bc3 commit 1743ca6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lua/eca/sidebar.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ function M:reset()
180180

181181
-- Reset all state
182182
self.containers = {}
183+
self.extmarks = {}
183184
self._initialized = false
184185
self._is_streaming = false
185186
self._current_response_buffer = ""
@@ -1064,7 +1065,7 @@ end
10641065

10651066
function M:_update_config_display()
10661067
local config = self.containers.config
1067-
if not config or not vim.api.nvim_buf_is_valid(config.bufnr) then
1068+
if not config or not config.bufnr or not vim.api.nvim_buf_is_valid(config.bufnr) then
10681069
return
10691070
end
10701071

@@ -1149,7 +1150,7 @@ end
11491150

11501151
function M:_update_usage_info()
11511152
local usage = self.containers.usage
1152-
if not usage or not vim.api.nvim_buf_is_valid(usage.bufnr) then
1153+
if not usage or not usage.bufnr or not vim.api.nvim_buf_is_valid(usage.bufnr) then
11531154
return
11541155
end
11551156

0 commit comments

Comments
 (0)