[BUG_FIXED] (Author: Pekka Pöyry) Fix tab display bug when buffer's filename is changed or buffer is closed.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@998 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2013-01-01 21:02:17 +00:00
parent d0395e1ffe
commit e96c9b151b
2 changed files with 3 additions and 0 deletions

View File

@ -4450,6 +4450,8 @@ void Notepad_plus::notifyBufferChanged(Buffer * buffer, int mask)
if (mask & (BufferChangeDirty|BufferChangeFilename))
{
if(mask & BufferChangeFilename)
command(IDM_VIEW_REFRESHTABAR);
checkDocState();
setTitle();
generic_string dir(buffer->getFullPathName());

View File

@ -388,6 +388,7 @@ void Notepad_plus::doClose(BufferID id, int whichOne)
_pFileSwitcherPanel->closeItem((int)hiddenBufferID, whichOne);
}
}
command(IDM_VIEW_REFRESHTABAR);
return;
}