Fixed extra space between UNTITLED_STR and document number when creating a new document through the function FileManager::newEmptyDocument()

This commit is contained in:
Joshua Noel 2015-05-30 13:40:41 -04:00
parent 17e8ca3c15
commit bc0b68b2ba

View File

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