Error detected while processing BufWinLeave Autocommands for "":
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 19e79fb4346369dfa3a4e6fd35742f5c5d40bdba, 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!
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.
:close
Error detected while processing BufWinLeave Autocommands for "":
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 19e79fb4346369dfa3a4e6fd35742f5c5d40bdba, 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!