Skip to content

Commit

Permalink
chore(picker): use await to avoid test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
chemzqm committed Jun 21, 2021
1 parent 3efce54 commit 18f81ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/model/picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ export default class Picker {
buf.addHighlight({ hlGroup: 'Comment', line: pos[0], srcId: 1, colStart: pos[1], colEnd: -1 })
}
nvim.command('redraw', true)
// eslint-disable-next-line @typescript-eslint/no-floating-promises
nvim.resumeNotification(false, true)
await nvim.resumeNotification()
nvim.call('coc#prompt#start_prompt', ['picker'], true)
return res[0]
}
Expand Down

0 comments on commit 18f81ab

Please sign in to comment.