Browse Source

Fix statusbar not updating

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@229 f5eea248-9336-0410-98b8-ebc06183d4e3
pull/343/head^2
harrybharry 17 years ago
parent
commit
a979745f97
  1. 5
      PowerEditor/src/Notepad_plus.cpp

5
PowerEditor/src/Notepad_plus.cpp

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

Loading…
Cancel
Save