Merge pull request #140 from Morange21/master

[UPDATE] Remove extra space when creating a new document
This commit is contained in:
Don HO 2015-06-01 01:04:22 +02:00
commit 2002ecfbd2

View File

@ -1091,7 +1091,7 @@ BufferID FileManager::newEmptyDocument()
{ {
generic_string newTitle = UNTITLED_STR; generic_string newTitle = UNTITLED_STR;
TCHAR nb[10]; TCHAR nb[10];
wsprintf(nb, TEXT(" %d"), nextUntitledNewNumber()); wsprintf(nb, TEXT("%d"), nextUntitledNewNumber());
newTitle += nb; newTitle += nb;
Document doc = (Document)_pscratchTilla->execute(SCI_CREATEDOCUMENT); //this already sets a reference for filemanager Document doc = (Document)_pscratchTilla->execute(SCI_CREATEDOCUMENT); //this already sets a reference for filemanager