Fix statusbar not updating

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@229 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
harrybharry 2008-06-12 22:42:28 +00:00
parent c87f33fbea
commit a979745f97
1 changed files with 5 additions and 0 deletions

View File

@ -7912,6 +7912,7 @@ void Notepad_plus::notifyBufferChanged(Buffer * buffer, int mask) {
checkUnicodeMenuItems(buffer->getUnicodeMode());
setUniModeText(buffer->getUnicodeMode());
setDisplayFormat(buffer->getFormat());
enableConvertMenuItems(buffer->getFormat());
}
}
@ -7934,6 +7935,10 @@ void Notepad_plus::notifyBufferActivated(BufferID bufid, int view) {
dynamicCheckMenuAndTB();
setLangStatus(buf->getLangType());
updateStatusBar();
checkUnicodeMenuItems(buf->getUnicodeMode());
setUniModeText(buf->getUnicodeMode());
setDisplayFormat(buf->getFormat());
enableConvertMenuItems(buf->getFormat());
char dir[MAX_PATH];
strcpy(dir, buf->getFilePath());
PathRemoveFileSpec(dir);