Summary: | Search prev/next does not wrap around for certain text | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Kurt Hindenburg <khindenburg> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | justin.zobel, nate |
Priority: | NOR | ||
Version First Reported In: | master | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/utilities/konsole/-/commit/b83680a69328eb4fc7d32949406696b2fb00a0dc | Version Fixed In: | |
Sentry Crash Report: |
Description
Kurt Hindenburg
2018-07-14 17:41:52 UTC
I can confirm it won't wrap but is it supposed to? Do you have an example where it will wrap? Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone! Git commit b83680a69328eb4fc7d32949406696b2fb00a0dc by Christoph Cullmann, on behalf of Wendi Gan. Committed on 12/04/2025 at 18:15. Pushed by cullmann into branch 'master'. Fix search wrapping behavior at boundaries Issues: - At the second-to-last line, "Find Next" doesn't wrap to the start. - At the second line, "Find Previous" doesn't wrap to the end. These issues occurred because the initial value of startLine equaled endLine, causing the loop to terminate after one cycle. Changes: - Added a continueLoop flag: In wrap mode, the loop only terminates when hasWrapped is true. - Added an invertDirection flag to control the continueLoop flag in no-wrap mode. M +16 -4 src/SearchHistoryTask.cpp https://invent.kde.org/utilities/konsole/-/commit/b83680a69328eb4fc7d32949406696b2fb00a0dc |