This difference is pretty obvious:
BufEnter X
:
It was bufnr() != X
But now it becomes bufnr() == X
BufEnter X
:
BufWinEnter X
:
- It was
bufnr() != X
- But now it becomes
bufnr() == X
It was len(win_findbuf(X)) == 0
BufWinEnter X
:
But now it becomes len(win_findbuf(X)) == 1
- It was
len(win_findbuf(X)) == 0
- But now it becomes
len(win_findbuf(X)) == 1