[vim/vim] completeslash=slash prevents findfunc from opening file paths with slashes on Win32 (Issue #20770)

4 views
Skip to first unread message

Mao-Yining

unread,
Jul 14, 2026, 11:50:05 PM (9 hours ago) Jul 14
to vim/vim, Subscribed
mao-yining created an issue (vim/vim#20770)

Steps to reproduce

When completeslash=slash is set on Windows, file paths containing slashes (/) cannot be opened via findfunc completion.

vim9script
set completeslash=slash
set findfunc=Find

def Find(arg: string, _): list<string>
  if empty(filescache)
    autocmd CmdlineLeave : ++once filescache = []
    filescache = expand('**', 1, 1)->filter((_, v) => !isdirectory(v))
  endif
  return empty(arg) ? filescache : filescache->matchfuzzy(arg)
enddef

var filescache: list<string>
  1. Open Vim on Windows with above config
  2. Type :find src/foo (where src/foo exists)
  3. Select completion candidate

throw E345

Expected behaviour

don't throw E345

Version of Vim

9.2.782

Environment

MS-Windows 11

CC: @glepnir

Logs and stack traces


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20770@github.com>

Mao-Yining

unread,
Jul 14, 2026, 11:57:43 PM (8 hours ago) Jul 14
to vim/vim, Subscribed
mao-yining left a comment (vim/vim#20770)

While set completeslash=backslash if findfunc return path with slash will also have this problem.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20770/4976706473@github.com>

Reply all
Reply to author
Forward
0 new messages