We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CocListResume
1 parent 2a73b9d commit d9dce16Copy full SHA for d9dce16
src/list/session.ts
@@ -478,7 +478,7 @@ export default class ListSession {
478
479
public async resume(): Promise<void> {
480
if (this.winid) await this.hide()
481
- let res = await this.nvim.eval('[win_getid(),bufnr("%"),winheight("%")]')
+ let res = await this.nvim.eval(`[win_getid(),bufnr("%"),${workspace.isVim ? 'winheight("%")' : 'nvim_win_get_height(0)'}]`)
482
this.hidden = false
483
this.targetWinid = res[0]
484
this.targetBufnr = res[1]
0 commit comments