Skip to content

Commit

Permalink
fix(input): bdel term buf (#4608)
Browse files Browse the repository at this point in the history
close #4606
  • Loading branch information
fannheyward committed Aug 31, 2023
1 parent c790182 commit abdb129
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/model/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export default class InputBox implements Disposable {
if (this._disposed) return
this._disposed = true
this.nvim.call('coc#float#close', [this._winid ?? -1], true)
this.nvim.command(`silent! bd! ${this._bufnr}`, true)
this._onDidFinish.fire(this.accepted ? this._input : null)
this._winid = undefined
this._bufnr = undefined
Expand Down

0 comments on commit abdb129

Please sign in to comment.