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);
|
||||
if (other == BUFFER_INVALID) //can save, other view doesnt contain buffer
|
||||
{
|
||||
doSave(bufferID, pfn, isSaveCopy);
|
||||
buf->setNeedsLexing(true);
|
||||
return true;
|
||||
bool res = doSave(bufferID, pfn, isSaveCopy);
|
||||
//buf->setNeedsLexing(true); //commented to fix wrapping being removed after save as (due to SCI_CLEARSTYLE or something, seems to be Scintilla bug)
|
||||
//Changing lexer after save seems to work properly
|
||||
return res;
|
||||
}
|
||||
else //cannot save, other view has buffer already open, activate it
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue