canola.nvim/lua
Barrett Ruth c932ca1313
fix: set buftype before BufEnter fires on oil buffers
Problem: oil sets buftype='acwrite' inside view.initialize(), which runs
in an async finish() callback after adapter.normalize_url(). BufEnter
fires before finish() completes, so user autocmds that check buftype on
oil buffers see an empty string instead of 'acwrite'.

Solution: set buftype='acwrite' early in load_oil_buffer() alongside the
existing early filetype='oil' assignment, before the async gap. The
redundant set in view.initialize() is harmless (idempotent).

Closes: stevearc/oil.nvim#710
2026-02-21 02:17:34 -05:00
..
oil fix: set buftype before BufEnter fires on oil buffers 2026-02-21 02:17:34 -05:00
resession/extensions cleanup: don't need empty methods in resession extension 2023-09-17 10:10:42 -07:00