Skip to content

[BUG] add-highlighter buffer=$bufname/ only works with single word bufnames #5424

@Pri-yan-shu

Description

@Pri-yan-shu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions