diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-08-07 10:10:21 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-07 14:10:21 +0000 |
| commit | 7e53d3ba4df39003ca3c8a98637943348fec76ae (patch) | |
| tree | 83c0dca65fa561f9d4cc40f903226893dc167c4f /runtime/plugin/python_setup.vim | |
| parent | d0f96adf8af46da18cea0c7537594c1fbb254ca7 (diff) | |
| download | rneovim-7e53d3ba4df39003ca3c8a98637943348fec76ae.tar.gz rneovim-7e53d3ba4df39003ca3c8a98637943348fec76ae.tar.bz2 rneovim-7e53d3ba4df39003ca3c8a98637943348fec76ae.zip | |
fix(cwd): keep buffer-local dir when re-editing #41215
Problem:
Re-editing a buffer (`:edit!`, re-reading a dir.lua buffer, etc.) drops
its `:bcd` directory, so the CWD falls back to the global one. Whereas
other buffer-local state (`b:` vars, local options) survives a reload.
Solution:
Don't clear buf dir in `buf_freeall()`; `do_ecmd()` calls that when
reloading/re-editing. `free_buffer_stuff()` still clears them when
a buffer is freed or reused for another file.
Diffstat (limited to 'runtime/plugin/python_setup.vim')
0 files changed, 0 insertions, 0 deletions