Skip to content

Clicking a beatmap tag with an empty search bar inserts a leading space #38709

Description

@cryzorium

Type

Game behaviour

Bug description

Bug description

When clicking a clickable beatmap metadata item, such as a tag, in Song Select, the clicked text is appended to the existing search query.

When the search bar already contains text, this behaves as expected. For example:

xyz → click Englishxyz English

However, when the search bar is empty, clicking a tag inserts an unnecessary leading space:

"" → click English" English"

How did you find the bug?

I noticed this while using the recently introduced click-to-search append behaviour in Song Select.

This appears to be an edge case of the behaviour introduced by #38333 , which implemented the change requested in #38216 . The separator should presumably only be inserted when there is already text in the search bar.

Screenshots or videos

Video showing the search bar being empty, then clicking the English tag and the resulting leading space before English.

Screenshots or videos

2026-08-26.03-14-55.mp4

Version

Tachyon 2026.821.0

Logs

--

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions