mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 15:54:17 +02:00
Fix wrap after save as bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@339 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
9c736cdc88
commit
02e92ab36b
@ -1105,9 +1105,10 @@ bool Notepad_plus::fileSaveAs(BufferID id, bool isSaveCopy)
|
|||||||
BufferID other = _pNonDocTab->findBufferByName(pfn);
|
BufferID other = _pNonDocTab->findBufferByName(pfn);
|
||||||
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);
|
bool res = doSave(bufferID, pfn, isSaveCopy);
|
||||||
buf->setNeedsLexing(true);
|
//buf->setNeedsLexing(true); //commented to fix wrapping being removed after save as (due to SCI_CLEARSTYLE or something, seems to be Scintilla bug)
|
||||||
return true;
|
//Changing lexer after save seems to work properly
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
else //cannot save, other view has buffer already open, activate it
|
else //cannot save, other view has buffer already open, activate it
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user