Don't calculate attribute() twice.

Authored by jtamate on Mar 21 2018, 6:21 PM.

Description

Don't calculate attribute() twice.

Summary:
"kateTextLine" neither "i" shouldn't have changed since the first call to attribute two lines ago.

Test Plan: Open a XML file with 4 lines and a line of 566039 characters long.

Reviewers: Frameworks, Kate, dhaumann

Reviewed By: Kate, dhaumann

Subscribers: dhaumann

Tags: Kate, Frameworks

Differential Revision: https://phabricator.kde.org/D11491

Details

Committed
jtamateMar 21 2018, 6:21 PM
Reviewer
Kate
Differential Revision
D11491: Don't calculate attribute() twice.
Parents
R39:e75bde233b9f: Revert Fix: View jumps when Scroll past end of document is enabled
Branches
Unknown
Tags
Unknown