diff options
| author | Shantanu Raj <s@sraj.me> | 2026-09-11 17:05:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-11 11:05:53 -0400 |
| commit | b27a4bfba8ffd34cf3687093933d6c65caaa7b9c (patch) | |
| tree | bad50a326048834a78e6fad4dbc11fa808900c9f /runtime/lua/vim/_comment.lua | |
| parent | a6d91a8d7c1bcce43e3ce96955b9120ff0a21cf5 (diff) | |
| download | rneovim-b27a4bfba8ffd34cf3687093933d6c65caaa7b9c.tar.gz rneovim-b27a4bfba8ffd34cf3687093933d6c65caaa7b9c.tar.bz2 rneovim-b27a4bfba8ffd34cf3687093933d6c65caaa7b9c.zip | |
fix(write): crash when pre-write autocmd changes cwd #41840
Problem:
A :cd, or a window-context restore (nvim_win_call(), win_execute()), in a
pre-write autocmd clears the short name of a buffer outside the current
directory. buf_write then copies a NULL filename and crashes.
Solution:
Rebind short-name aliases to b_fname, which retains the effective filename.
Add a regression for a BufWritePre autocmd changing cwd away from the file.
Diffstat (limited to 'runtime/lua/vim/_comment.lua')
0 files changed, 0 insertions, 0 deletions