chrisbra / NrrwRgn

A Narrow Region Plugin for vim (like Emacs Narrow Region)
http://www.vim.org/scripts/script.php?script_id=3075
675 stars 25 forks source link

Confusion with buffer also on preceding tab #86

Closed Hans-Guenter closed 2 years ago

Hans-Guenter commented 2 years ago

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.

chrisbra commented 2 years ago

cool, thanks!