Bug 322532 - view jumps in last line, when scroll past end of file enabled
Summary: view jumps in last line, when scroll past end of file enabled
Status: RESOLVED FIXED
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 315542 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-07-18 15:17 UTC by Dominik Haumann
Modified: 2019-08-24 17:10 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Haumann 2013-07-18 15:17:23 UTC
Enable in the config dialog in Editing > Text Navigation: [x] Allow scrolling past the end of the document. Further, disable dynamic word wrap.

Scroll past the end of the document. As soon as you navigate in the last line, the view jumps by scrolling up.

Research on this: The trace is:
KateViewInternal::updateCursor > makeVisible() > viewLineOffset() in:
  else if ( c > viewLineOffset(startPos(), linesDisplayed() - m_minLinesVisible - 1) )

Say you have 5 lines, i.e. 0...4, and c is in (4, 5), the viewLineOffset always returns (4, 0) when dynamic word wrap is disabled. This basically is the error that needs to be fixed.
Comment 1 Dominik Haumann 2014-09-10 21:10:57 UTC
*** Bug 315542 has been marked as a duplicate of this bug. ***
Comment 2 Lothar 2019-03-08 18:47:54 UTC
Try https://phabricator.kde.org/D17857
Comment 3 Christoph Cullmann 2019-08-24 17:10:51 UTC
Works for me, even after the last changes to fix goto line in https://phabricator.kde.org/D17857