Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving the Narrow Region to a separate tab and closing gives an error #66

Open
idbrii opened this issue Feb 25, 2019 · 1 comment
Open

Comments

@idbrii
Copy link
Contributor

idbrii commented Feb 25, 2019

  1. Select a block of text

  2. :NR

  3. :wincmd T

  4. :close

    Error detected while processing BufWinLeave Autocommands for "<buffer=10>":
    E121: Undefined variable: b:nrrw_instn
    E116: Invalid arguments for function 328_NRBufWinLeave

However, modifying and saving (:w) correctly applies to the original text, so it seems this is a valid use case.

Tested on 19e79fb, gvim 8.1.527, on Win10.

Also, I just found the :NR! command which I can switch to as my default so I'm less bothered by this bug. Thanks for the great plugin!

@chrisbra
Copy link
Owner

latest master fixed this not completly. It works, if you use :noa wincmd T to make sure the WinEnter autocommand does not trigger for the narrowed window. Not sure how to fix this currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants