If the buffer is also open on a preceding tab the BufWinLeave autocommand results in confusing action because always jumps away from the tab with the narrowed region.
The solution is to first check whether the corresponding buffer resides on the current tab in BufInTab.
If the buffer is also open on a preceding tab the BufWinLeave autocommand results in confusing action because always jumps away from the tab with the narrowed region. The solution is to first check whether the corresponding buffer resides on the current tab inBufInTab.