Files
neovim/src/nvim
Justin M. Keyes 7e53d3ba4d 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.
2026-08-07 14:10:21 +00:00
..
2026-08-06 13:17:07 +02:00
2026-08-06 13:17:07 +02:00
2024-01-11 21:37:23 +01:00
2026-03-11 18:00:18 +01:00
2024-01-11 21:37:23 +01:00
2023-11-28 22:23:56 +01:00
2024-01-11 21:37:23 +01:00
2026-04-14 18:39:38 +02:00
2026-04-20 07:09:37 -04:00
2026-07-18 14:31:36 -04:00
2025-11-16 20:36:07 -08:00
2026-07-16 21:39:40 +02:00
2026-07-16 21:39:40 +02:00
2026-07-18 14:31:36 -04:00
2024-01-11 21:37:23 +01:00
2025-09-13 22:49:50 -04:00
2026-08-07 04:37:00 -04:00