Enhance very long line's performance

When document contains a very long line and the wrapped feature is ON, switch off then switch back to this document could take times.
This commit reduce the delay largely while switching into the document with very long line.

Fix #11942
This commit is contained in:
Don Ho 2022-07-25 05:35:30 +02:00
parent 13350a3d29
commit 7a64fd5161

View File

@ -341,6 +341,10 @@ LRESULT Notepad_plus::init(HWND hwnd)
_subEditView.execute(SCI_SETMARGINLEFT, 0, svp._paddingLeft);
_subEditView.execute(SCI_SETMARGINRIGHT, 0, svp._paddingRight);
// Improvement of the switching into the wrapped long line document
_mainEditView.execute(SCI_STYLESETCHECKMONOSPACED, STYLE_DEFAULT, true);
_subEditView.execute(SCI_STYLESETCHECKMONOSPACED, STYLE_DEFAULT, true);
TabBarPlus::doDragNDrop(true);
if (_toReduceTabBar)