From bc0b68b2ba58c490fe0fea1d40630606e48d64c7 Mon Sep 17 00:00:00 2001 From: Joshua Noel Date: Sat, 30 May 2015 13:40:41 -0400 Subject: [PATCH] Fixed extra space between UNTITLED_STR and document number when creating a new document through the function FileManager::newEmptyDocument() --- PowerEditor/src/ScitillaComponent/Buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/ScitillaComponent/Buffer.cpp b/PowerEditor/src/ScitillaComponent/Buffer.cpp index 875bf973..afd2ae9e 100644 --- a/PowerEditor/src/ScitillaComponent/Buffer.cpp +++ b/PowerEditor/src/ScitillaComponent/Buffer.cpp @@ -1090,7 +1090,7 @@ BufferID FileManager::newEmptyDocument() { generic_string newTitle = UNTITLED_STR; TCHAR nb[10]; - wsprintf(nb, TEXT(" %d"), nextUntitledNewNumber()); + wsprintf(nb, TEXT("%d"), nextUntitledNewNumber()); newTitle += nb; Document doc = (Document)_pscratchTilla->execute(SCI_CREATEDOCUMENT); //this already sets a reference for filemanager