fix(files): ensure BufWinEnter after :edit <dir>#2467
Conversation
|
Thanks for the PR! I can indeed reproduce the issue, however the solution is not quite right. Usually if there is a problem with some event not triggering, two most probable causes are: 1) it is executed inside an autocommand without Also note, that merging this will have to wait until 0.18.0 release. |
ad3f9ab to
20b6b75
Compare
Initially I worried that |
Details: - By default, 'mini.files' replaces 'netrw'. When a directory is opened with `:edit <dir>`, and the explorer is closed without opening a file, 'mini.files' shows the alternate buffer if present. If there is no alternate buffer, a new buffer is created. Event `BufWinEnter` needs to fire in order for `mini.clue` to attach. Resolve nvim-mini#2466
20b6b75 to
fa9600f
Compare
Details:
:edit <dir>, and the explorer is closed without opening a file, 'mini.files' shows the alternate buffer if present. If there is no alternate buffer, a new buffer is created. EventBufWinEnterneeds to fire in order formini.clueto attach.Resolve #2466