mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-22 13:24:42 +02:00
[RELEASE] OR v5.0.1.
Fix bug : Syntax highlighting is not applied after "Save as". git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@289 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
8bfe2001eb
commit
2cb0038e08
@ -8,6 +8,7 @@ Notepad++ v5.0.1 fixed bugs and added features (from v5) :
|
|||||||
6. Fix bug : Files not in recent list on exit and no session saved.
|
6. Fix bug : Files not in recent list on exit and no session saved.
|
||||||
7. Fix bug : hide lines not working right when closing.
|
7. Fix bug : hide lines not working right when closing.
|
||||||
8. Re-enable gcc compiler environment (minGW).
|
8. Re-enable gcc compiler environment (minGW).
|
||||||
|
9. Fix bug : Syntax highlighting is not applied after "Save as".
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -30,7 +31,7 @@ Notepad++ v5 fixed bugs and added features (from v4.9.2) :
|
|||||||
15. Add "Select all" and "copy" context menu items in Find in files results window.
|
15. Add "Select all" and "copy" context menu items in Find in files results window.
|
||||||
16. Fix goto line with command line bug.
|
16. Fix goto line with command line bug.
|
||||||
17. Improve smart highlight / mark all / incremental search highlight all visibility
|
17. Improve smart highlight / mark all / incremental search highlight all visibility
|
||||||
18. Tabbar's coulours is configurable via Stylers Configurator(Active tab Text, Inactive tab text, Inactive tab background, Active tab focused indicator and Active tab unfocused indicator).
|
18. Tabbar's colours is configurable via Stylers Configurator(Active tab Text, Inactive tab text, Inactive tab background, Active tab focused indicator and Active tab unfocused indicator).
|
||||||
19. Add the smart highlight file size limit - 1.5 MB in order to improve the performance.
|
19. Add the smart highlight file size limit - 1.5 MB in order to improve the performance.
|
||||||
20. Add exception handling (dumping file data).
|
20. Add exception handling (dumping file data).
|
||||||
21. Fix go to line command line bug.
|
21. Fix go to line command line bug.
|
||||||
|
@ -510,6 +510,10 @@ GLOBAL_INST:
|
|||||||
IfFileExists "$INSTDIR\plugins\FunctionList.dll" 0 +3
|
IfFileExists "$INSTDIR\plugins\FunctionList.dll" 0 +3
|
||||||
MessageBox MB_OK "Due to the problem of compability with this version,$\nFunctionList.dll is about to be deleted.$\nYou can download it via menu $\"?->Get more plugins$\" if you really need it."
|
MessageBox MB_OK "Due to the problem of compability with this version,$\nFunctionList.dll is about to be deleted.$\nYou can download it via menu $\"?->Get more plugins$\" if you really need it."
|
||||||
Delete "$INSTDIR\plugins\FunctionList.dll"
|
Delete "$INSTDIR\plugins\FunctionList.dll"
|
||||||
|
|
||||||
|
IfFileExists "$INSTDIR\plugins\NPPTextFX.ini" 0 +3
|
||||||
|
Delete "$INSTDIR\plugins\NPPTextFX.ini"
|
||||||
|
|
||||||
; detect the right of
|
; detect the right of
|
||||||
UserInfo::GetAccountType
|
UserInfo::GetAccountType
|
||||||
Pop $1
|
Pop $1
|
||||||
|
@ -1102,6 +1102,7 @@ bool Notepad_plus::fileSaveAs(BufferID id, bool isSaveCopy)
|
|||||||
if (other == BUFFER_INVALID) //can save, other view doesnt contain buffer
|
if (other == BUFFER_INVALID) //can save, other view doesnt contain buffer
|
||||||
{
|
{
|
||||||
doSave(bufferID, pfn, isSaveCopy);
|
doSave(bufferID, pfn, isSaveCopy);
|
||||||
|
buf->setNeedsLexing(true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else //cannot save, other view has buffer already open, activate it
|
else //cannot save, other view has buffer already open, activate it
|
||||||
|
@ -346,7 +346,6 @@ FileManager::~FileManager() {
|
|||||||
void FileManager::checkFilesystemChanges() {
|
void FileManager::checkFilesystemChanges() {
|
||||||
for(size_t i = 0; i < _nrBufs; i++) {
|
for(size_t i = 0; i < _nrBufs; i++) {
|
||||||
if (_buffers[i]->checkFileState()){} //something has changed. Triggers update automatically
|
if (_buffers[i]->checkFileState()){} //something has changed. Triggers update automatically
|
||||||
//_pNotepadPlus->notifyBufferChanged(_buffers[i]._id, _buffers[i]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -362,12 +361,6 @@ Buffer * FileManager::getBufferByIndex(int index) {
|
|||||||
return _buffers.at(index);
|
return _buffers.at(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
Buffer * FileManager::getBufferByID(BufferID id) {
|
|
||||||
return (Buffer*)id;
|
|
||||||
//return _buffers.at(getBufferIndexByID(id));
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
void FileManager::beNotifiedOfBufferChange(Buffer * theBuf, int mask) {
|
void FileManager::beNotifiedOfBufferChange(Buffer * theBuf, int mask) {
|
||||||
_pNotepadPlus->notifyBufferChanged(theBuf, mask);
|
_pNotepadPlus->notifyBufferChanged(theBuf, mask);
|
||||||
|
@ -366,7 +366,10 @@ private :
|
|||||||
doNotify(BufferChangeStatus);
|
doNotify(BufferChangeStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
void doNotify(int mask) { if (_canNotify) _pManager->beNotifiedOfBufferChange(this, mask); };
|
void doNotify(int mask) {
|
||||||
|
if (_canNotify)
|
||||||
|
_pManager->beNotifiedOfBufferChange(this, mask);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //BUFFER_H
|
#endif //BUFFER_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user