mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-26 07:15:21 +02:00
parent
5f13c84719
commit
d7630fa42d
@ -4907,13 +4907,6 @@ bool Notepad_plus::activateBuffer(BufferID id, int whichOne, bool forceApplyHili
|
|||||||
|
|
||||||
notifyBufferActivated(id, whichOne);
|
notifyBufferActivated(id, whichOne);
|
||||||
|
|
||||||
bool isCurrBuffDetection = (nppGui._fileAutoDetection & cdEnabledNew) ? true : false;
|
|
||||||
if (!reload && isCurrBuffDetection)
|
|
||||||
{
|
|
||||||
// Buffer has been activated, now check for file modification
|
|
||||||
// If enabled for current buffer
|
|
||||||
pBuf->checkFileState();
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6664,6 +6657,16 @@ void Notepad_plus::notifyBufferActivated(BufferID bufid, int view)
|
|||||||
_pFuncList->reload();
|
_pFuncList->reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NppGUI& nppGui = NppParameters::getInstance().getNppGUI();
|
||||||
|
bool isCurrBuffDetection = (nppGui._fileAutoDetection & cdEnabledNew) ? true : false;
|
||||||
|
bool reload = buf->getNeedReload();
|
||||||
|
if (!reload && isCurrBuffDetection)
|
||||||
|
{
|
||||||
|
// Buffer has been activated, now check for file modification
|
||||||
|
// If enabled for current buffer
|
||||||
|
buf->checkFileState();
|
||||||
|
}
|
||||||
|
|
||||||
_linkTriggered = true;
|
_linkTriggered = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user