diff options
| author | 11soda11 <115734183+11soda11@users.noreply.github.com> | 2025-10-31 20:33:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-31 12:33:01 -0700 |
| commit | b25838217697c9e018b73b9859b8c66c7e0b3f94 (patch) | |
| tree | a4ff42e48b96f692f32c4df58bf873cd00990e64 /runtime/lua/vim/_stringbuffer.lua | |
| parent | 2b83237b0f31d83e3f781fe592d5455e0af53c6a (diff) | |
| download | rneovim-b25838217697c9e018b73b9859b8c66c7e0b3f94.tar.gz rneovim-b25838217697c9e018b73b9859b8c66c7e0b3f94.tar.bz2 rneovim-b25838217697c9e018b73b9859b8c66c7e0b3f94.zip | |
fix(completion): complete drive-letter filepath on Windows #36353
Problem:
On MSWIN, file completion (CTRL-X CTRL-F) only works for the current
drive (so not for actual absolute paths), since drive letters are never
included in the completion pattern.
e.g. when completing "F:\Hello" Nvim currently completes "\Hello"
which is relative to the current drive/volume.
vim solves this by adding ':' to the default 'isfname' value on mswin,
but that causes issues as ':' is not a valid windows path char anywhere
_except_ after the drive letter.
Solution:
detect drive letters in front of the path when creating the completion
pattern.
Diffstat (limited to 'runtime/lua/vim/_stringbuffer.lua')
0 files changed, 0 insertions, 0 deletions