Summary: | With a dynamic word wrap and a line long enough to overflow the view, view doesn't scroll when needed | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Oded Arbel <oded> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version First Reported In: | Git | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/ktexteditor/-/commit/6a18c1818eec5514bff95e93f97b4baf27f9c091 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | screencast showing the problems |
Description
Oded Arbel
2022-01-19 11:54:16 UTC
Created attachment 145642 [details]
screencast showing the problems
The attachment shows the behavior with a Java classpath line - very long text with no white space. I first demonstrate the issue with "find in file" and then the HOME and END behaviors.
Note that during the search, first the first match is found relatively close to the top, then - as more text is typed - the first match is moved to the bottom of the view, but low enough that the "scroll before hitting the bottom" behavior of kate is triggered (which, BTW, is a feature I love so much💕), then more text is typed and the first match is found out of the screen and the view does not scroll, as per the bug report.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/786 Git commit 6a18c1818eec5514bff95e93f97b4baf27f9c091 by Wendi Gan. Committed on 16/02/2025 at 07:27. Pushed by cullmann into branch 'master'. Fix scrolling to search results in wrapped long lines When dynamic word wrap is enabled, if the search result is located in a very long line and part of the line is currently displayed but the search result is further down, the search result cannot be navigated to after searching. This commit modifies the return value of KateLayoutCache::displayViewLine to ensure that KateViewInternal::makeVisible can correctly scroll to search results in long lines. M +3 -1 src/render/katelayoutcache.cpp https://invent.kde.org/frameworks/ktexteditor/-/commit/6a18c1818eec5514bff95e93f97b4baf27f9c091 |