mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-24 22:34:54 +02:00
Fix file not turning dirty (with Session Manager plugin) issue
Fixes #9475, close #9498
This commit is contained in:
parent
d7819cf601
commit
75bcb7c536
@ -1501,8 +1501,9 @@ int FileManager::getFileNameFromBuffer(BufferID id, TCHAR * fn2copy)
|
||||
|
||||
int FileManager::docLength(Buffer* buffer) const
|
||||
{
|
||||
Document curDoc = _pscratchTilla->execute(SCI_GETDOCPOINTER);
|
||||
_pscratchTilla->execute(SCI_SETDOCPOINTER, 0, buffer->_doc);
|
||||
int docLen = _pscratchTilla->getCurrentDocLen();
|
||||
_pscratchTilla->execute(SCI_SETDOCPOINTER, 0, _scratchDocDefault);
|
||||
_pscratchTilla->execute(SCI_SETDOCPOINTER, 0, curDoc);
|
||||
return docLen;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user