notepad-plus-plus/PowerEditor
Chris Cammack fd51703ad8 Fix a performance issue for swiching back to folded document.
Use the _isFolding flag to fix several overlooked edge case hangs.
This pull request fixes additional hangs I found after #4867 when working with deeply-nested fully-folded files. The hangs are easy to reproduce by following these steps:

Download the sample file https://raw.githubusercontent.com/notepad-plus-plus/notepad-plus-plus/master/PowerEditor/src/Parameters.cpp
Open the downloaded file by itself in NPP and fold it using Alt-0
Create a new empty tab and remain focused on it
Perform the six actions below, each of which will produce a hang as NPP tries to change focus back to the first tab. On my machine, each hang lasts about 30 seconds. After control returns, refocus the empty tab again and try the next action.
Use File>>Open to reopen the downloaded file, even though it is already open
Drag and drop the downloaded file onto NPP to reopen it
Double-click the downloaded file to reopen it
Right-click the downloaded file and select Edit with Notepad++ in the context menu
Open the downloaded file from the command line: C:\Program Files (x86)\Notepad++\notepad++.exe" .\Parameters.cpp
Click the red [X] in the upper right corner to close NPP
After applying the patch, none of the hangs should happen any more.

Close #4999
2018-11-10 03:05:13 +01:00
..
Test/FunctionList Add unit tests for function list feature 2018-04-13 12:46:03 +02:00
bin Remove allowAppDataPluginsLoading option from the installer 2018-11-03 20:57:10 +01:00
gcc MinGW GCC update 2016-10-31 14:03:29 +01:00
installer Add autoit autoCompletion 2018-11-09 20:24:48 +01:00
misc/chameleon Remove the old icon 2016-09-21 09:06:22 +02:00
resources Adapt json format for Plugin admin 2017-09-24 18:27:42 +02:00
scintilla.original.forUpdating Create scintillaUpdatingWorkFlow.txt 2015-07-25 01:35:43 +02:00
src Fix a performance issue for swiching back to folded document. 2018-11-10 03:05:13 +01:00
visual.net Update uchardet to 0.0.6 to improve UTF-8 detection quality 2018-11-09 13:49:58 +01:00