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

Do BufEnter for directories. #1375

Closed
wants to merge 1 commit into from
Closed

Commits on Jan 12, 2017

  1. Do BufEnter for directories.

    Abuse NOTDONE to give some nuance to the return value of readfile(), so
    that open_buffer() can distinguish between "general failure" and "failed
    because the path is a directory".
    
    Before this change, Vim *already* creates a new buffer when a directory
    is edited. So there's no reason it should not raise BufEnter, that was
    an implementation detail of readfile().
    
    Most of the changes in this commit merely preserve the old semantics.
    The "implicit" change that we actually are interested in, is this line
    in `open_buffer()`, where `&retval` being non-FAIL allows EVENT_BUFENTER
    to be applied:
    
        apply_autocmds_retval(EVENT_BUFENTER, NULL, NULL, FALSE, curbuf, &retval);
    
    Closes vim#1353
    justinmk committed Jan 12, 2017
    Configuration menu
    Copy the full SHA
    d346a28 View commit details
    Browse the repository at this point in the history