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().
This commit is contained in:
Joshua Noel 2015-06-17 16:12:40 -04:00 committed by Damien GERARD
parent 8c18baf06b
commit 11a51aa05e

View File

@ -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)