File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ Execute (proompter#SendPromptToChat -- Uses default channel callback when stream
102
102
103
103
sleep 100m
104
104
finally
105
- if get(ch_info(state.channel), 'status', v:null) != 'closed'
105
+ if type(state.channel) != v:t_none && get(ch_info(state.channel), 'status', v:null) != 'closed'
106
106
call ch_close(state.channel)
107
107
endif
108
108
endtry
@@ -186,7 +186,7 @@ Execute (proompter#SendPromptToChat -- Uses default channel callback when non-st
186
186
187
187
sleep 100m
188
188
finally
189
- if get(ch_info(state.channel), 'status', v:null) != 'closed'
189
+ if type(state.channel) != v:t_none && get(ch_info(state.channel), 'status', v:null) != 'closed'
190
190
call ch_close(state.channel)
191
191
endif
192
192
endtry
@@ -295,7 +295,7 @@ Execute (proompter#SendPromptToChat -- Appends to buffer via example channel cal
295
295
296
296
sleep 100m
297
297
finally
298
- if get(ch_info(state.channel), 'status', v:null) != 'closed'
298
+ if type(state.channel) != v:t_none && get(ch_info(state.channel), 'status', v:null) != 'closed'
299
299
call ch_close(state.channel)
300
300
endif
301
301
endtry
You can’t perform that action at this time.
0 commit comments