mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-24 14:24:58 +02:00
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:
parent
13350a3d29
commit
7a64fd5161
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user