You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found that cursor movements executed internally by NERDTree plugin do not fire events like WinEnter,BufWinEnter,WinLeave so it will break some scripts like:
" Highlight cursor only in current windowaugroupCursorLineautocmd!autocmdVimEnter,WinEnter,BufWinEnter*setlocalcursorlineautocmdWinLeave*setlocalnocursorlineaugroupEND
It can be fixed by removing eventignore modifications in function! nerdtree#exec(cmd) but I'm not sure that is good enough... Is there any considerable reasons for disabling event processing?
The text was updated successfully, but these errors were encountered:
I just ran into the same issue with the same script (trying to only highlight the current line in the active window), and after digging through the code came to the same conclusion. I was going to post an issue here, but found this one before posting.
I tried removing the eventignore setting from nerdtree#exec, and I haven't run into any issues with it yet. It fixed the issue I was seeing, and hasn't caused anything bad to happen that I'm aware of. Is there some potential error that I've been lucky to avoid so far?
I've found that cursor movements executed internally by NERDTree plugin do not fire events like
WinEnter
,BufWinEnter
,WinLeave
so it will break some scripts like:It can be fixed by removing
eventignore
modifications infunction! nerdtree#exec(cmd)
but I'm not sure that is good enough... Is there any considerable reasons for disabling event processing?The text was updated successfully, but these errors were encountered: