Skip to content

Commit

Permalink
Revert "feat(lsit): add CocListMoved autocmd (#5098)"
Browse files Browse the repository at this point in the history
This reverts commit 39cd270.
  • Loading branch information
fannheyward authored Aug 1, 2024
1 parent 39cd270 commit c19ecc8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/list/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,6 @@ export class ListManager implements Disposable {

public triggerCursorMoved(): void {
if (this.nvim.isVim) this.nvim.command('doautocmd <nomodeline> CursorMoved', true)
this.nvim.call('coc#util#do_autocmd', ['CocListMoved'], true)
}

public async call(fname: string): Promise<any> {
Expand Down
1 change: 0 additions & 1 deletion src/list/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,6 @@ export default class ListUI {
this.onLineChange(index)
this.window?.setCursor([lnum, col], true)
this.nvim.call('coc#list#select', [this.bufnr, lnum], true)
this.nvim.call('coc#util#do_autocmd', ['CocListMoved'], true)
}

public async setIndex(index: number): Promise<void> {
Expand Down

0 comments on commit c19ecc8

Please sign in to comment.