Version of Kakoune
v2025.06.03
Reproducer
Open any file not immediately in kakoune's pwd, so its %val{bufname} is like dir/file. In kakoune's prompt, run: add-highlighter buffer=dir/file/highlighter-name line 1 red
Outcome
It fails like: Error: 1:1: 'add-highlighter': no such buffer 'dir'
Expectations
It should add the highlighter with correct name in correct buffer, like it does with buffers with names not containing '/' (for instance with files in kakoune's pwd).
Additional information
No response