mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 13:54:54 +02:00
[BUG_FIXED] (Author: Dave Brotherstone) Fix SaveSession bug.
[UPDATE] Resize the section of status bar. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@649 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
29143b3d6c
commit
711e56ad3a
@ -284,8 +284,8 @@ LRESULT Notepad_plus::init(HWND hwnd)
|
|||||||
//--Status Bar Section--//
|
//--Status Bar Section--//
|
||||||
bool willBeShown = nppGUI._statusBarShow;
|
bool willBeShown = nppGUI._statusBarShow;
|
||||||
_statusBar.init(_pPublicInterface->getHinst(), hwnd, 6);
|
_statusBar.init(_pPublicInterface->getHinst(), hwnd, 6);
|
||||||
_statusBar.setPartWidth(STATUSBAR_DOC_SIZE, 250);
|
_statusBar.setPartWidth(STATUSBAR_DOC_SIZE, 170);
|
||||||
_statusBar.setPartWidth(STATUSBAR_CUR_POS, 300);
|
_statusBar.setPartWidth(STATUSBAR_CUR_POS, 380);
|
||||||
_statusBar.setPartWidth(STATUSBAR_EOF_FORMAT, 80);
|
_statusBar.setPartWidth(STATUSBAR_EOF_FORMAT, 80);
|
||||||
_statusBar.setPartWidth(STATUSBAR_UNICODE_TYPE, 100);
|
_statusBar.setPartWidth(STATUSBAR_UNICODE_TYPE, 100);
|
||||||
_statusBar.setPartWidth(STATUSBAR_TYPING_MODE, 30);
|
_statusBar.setPartWidth(STATUSBAR_TYPING_MODE, 30);
|
||||||
|
@ -626,7 +626,7 @@ bool Notepad_plus::fileSave(BufferID id)
|
|||||||
const TCHAR *fn = buf->getFullPathName();
|
const TCHAR *fn = buf->getFullPathName();
|
||||||
if (buf->isUntitled())
|
if (buf->isUntitled())
|
||||||
{
|
{
|
||||||
return fileSaveAs(id);
|
return fileSaveAs(bufferID);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1042,7 +1042,7 @@ const TCHAR * Notepad_plus::fileSaveSession(size_t nbFile, TCHAR ** fileNames, c
|
|||||||
if (sessionFile2save)
|
if (sessionFile2save)
|
||||||
{
|
{
|
||||||
Session currentSession;
|
Session currentSession;
|
||||||
if ((nbFile) && (!fileNames))
|
if ((nbFile) && (fileNames))
|
||||||
{
|
{
|
||||||
for (size_t i = 0 ; i < nbFile ; i++)
|
for (size_t i = 0 ; i < nbFile ; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user