Skip to content

The comment package adds spaces to comment lines even if spaces are absent from 'commentstring' #14905

@lkintact

Description

@lkintact

Steps to reproduce

If I have 'commentstring' set to /*\ %s\ */, pressing gcc on string results in /* string */, which is expected. However if 'commentstring' is /*%s*/ (which is default), I get the same result, i.e. /* string */. Shouldn't it be /*string*/ instead?

Expected behaviour

.

Version of Vim

9.1.443

Environment

.

Logs and stack traces

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions