diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp index c8d11973..98b39208 100644 --- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp @@ -1946,14 +1946,15 @@ void ScintillaEditView::activateBuffer(BufferID buffer) restyleBuffer(); } + // Everything should be updated, but the language + bufferUpdated(_currentBuffer, (BufferChangeMask & ~BufferChangeLanguage)); + // restore the collapsed info const std::vector & lineStateVectorNew = newBuf->getHeaderLineState(this); syncFoldStateWith(lineStateVectorNew); restoreCurrentPosPreStep(); - bufferUpdated(_currentBuffer, (BufferChangeMask & ~BufferChangeLanguage)); //everything should be updated, but the language (which undoes some operations done here like folding) - //setup line number margin int numLines = static_cast(execute(SCI_GETLINECOUNT)); diff --git a/PowerEditor/src/WinControls/Preference/preference_rc.h b/PowerEditor/src/WinControls/Preference/preference_rc.h index a3198157..83d0c95c 100644 --- a/PowerEditor/src/WinControls/Preference/preference_rc.h +++ b/PowerEditor/src/WinControls/Preference/preference_rc.h @@ -1,5 +1,5 @@ // This file is part of Notepad++ project -// Copyright (C)2003 Don HO +// Copyright (C)2020 Don HO // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License