Skip to content

New document name is using two spaces #97

@Rikk

Description

@Rikk

Npp is creating new blank files with two spaces in name: "new  1"

I could track a possible cause of this to the newEmptyDocument() function of https://github.com/donho/notepad-plus-plus/blob/master/PowerEditor/src/ScitillaComponent/Buffer.cpp#L1089 but I'm not sure.

Maybe changing
wsprintf(nb, TEXT(" %d"), nextUntitledNewNumber());
to
wsprintf(nb, TEXT("%d"), nextUntitledNewNumber());
would fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedenhancementProposed enhancements of existing features

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions