-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show context lines flag not always respected #703
Comments
I've tried this a number of times and haven't been able to reproduce it. You say you did not toggle the flag, but did you change it after you clicked the Search button? In the current implementation the state of the flag is saved when the search is started, and that value is used until the next search - which is why the tooltip says: "Context line changes will be applied in the next search". |
I just discovered that if I select a file that I had not been selected previously, and then expand it, it expands, showing the context lines. If you expand the file first, it does not show the context lines. Aside from that, I was still having an issue with the cancel button not immediately (or at least quickly) stopping the search, however I have now installed the latest version and it seems better. I was running the previous version (v3.0.64.0) and didn't see anything in the release notes for the latest update regarding that. |
OK I do see the problem now. Selecting the file node and showing the preview takes a different path that isn't checking the flag, just the lines before and lines after. I didn't knowingly make any changes to the Cancel in the latest release. The code checks for cancel many places and usually responds very quickly. If the code is in some long running operation, the operation doesn't get halted, but there should be checks before and after. It's not obvious where that would be, I've fixed all the ones that I have been able to find. |
Glad to hear you have the flag problem. I am unsure what to say about the cancel. The one thing that I believe is that when the search takes longer, the cancel takes longer. Basically it seems that the folder list is cached by Windows on the first run, and that cache is eventually cleared if not used. For example, after a reboot, or if I wait a few days between searches. It was kind of bad of me to piggy back a second issue on to this. |
If you find a situation that is slow or non-responsive to Cancel, any info you can provide would help - all the filter and search parameters, searching archives, types and sizes of files. |
It doesn't really seem like it is a specific situation, because I did the exact same search with the latest version (after that hypothetical cache was filled), and it seemed to respond as desired. I think with the previous version too, but I no longer have it installed. |
Note that I logged #710 regarding the cancel issue. |
Fixed in release v3.0.136 |
I am unsure why this occurs, but sometimes when I do a search, some files show context lines, even though
Show context lines
is off. Note that I did not toggle the flag, but I did sort the results (depth-first).The text was updated successfully, but these errors were encountered: