Skip to content

NERDTree disables event processing for wincmd and this lead to inconsistent behaviour of some other script #261

Closed
@nkulikov

Description

@nkulikov

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 window
augroup CursorLine
  autocmd!
  autocmd VimEnter,WinEnter,BufWinEnter * setlocal cursorline
  autocmd WinLeave * setlocal nocursorline
augroup END

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions