From 11a51aa05e794f59bba85dfed0b69008010da946 Mon Sep 17 00:00:00 2001 From: Joshua Noel Date: Wed, 17 Jun 2015 16:12:40 -0400 Subject: [PATCH] Removed the extra space in default document name at startup (closes #254, fixes #97) Fixed extra space between UNTITLED_STR and document number "0" when creating a new buffer on start up through the function FileManager::bufferFromDocument(). --- 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 f7e51f9a1..add3092d7 100644 --- a/PowerEditor/src/ScitillaComponent/Buffer.cpp +++ b/PowerEditor/src/ScitillaComponent/Buffer.cpp @@ -1106,7 +1106,7 @@ BufferID FileManager::bufferFromDocument(Document doc, bool dontIncrease, bool d { generic_string newTitle = UNTITLED_STR; TCHAR nb[10]; - wsprintf(nb, TEXT(" %d"), 0); + wsprintf(nb, TEXT("%d"), 0); newTitle += nb; if (!dontRef)