diff options
| author | erdivartanovich <erdivartanovich@gmail.com> | 2026-08-03 18:31:15 +0800 |
|---|---|---|
| committer | erdivartanovich <erdivartanovich@gmail.com> | 2026-08-04 01:57:21 +0800 |
| commit | d80121327fe15663d7f5367f03bb150c748243db (patch) | |
| tree | 05a89261c357a0907423e97e2ccf692e9a97bc10 /runtime/lua/vim/_stringbuffer.lua | |
| parent | a3eff66e313b89cf721ad70ea34c41b7425200c1 (diff) | |
| download | rneovim-d80121327fe15663d7f5367f03bb150c748243db.tar.gz rneovim-d80121327fe15663d7f5367f03bb150c748243db.tar.bz2 rneovim-d80121327fe15663d7f5367f03bb150c748243db.zip | |
fix(dir): keep a listing buffer when the initial listing fails
Problem: A failed initial directory listing discards the listing state:
the user is left in an empty modifiable non-listing buffer, and
the BufEnter autocmd retries the failing open, repeating the
error on every re-entry.
Solution: Render the failure as an empty listing with state and handlers
intact: the error is reported once and "R" or :edit retries the
listing. Keep the error on the listing state so a failed
listing is distinguishable from an empty one; the next list
clears it.
Diffstat (limited to 'runtime/lua/vim/_stringbuffer.lua')
0 files changed, 0 insertions, 0 deletions