https://bugs.kde.org/show_bug.cgi?id=477759

Igor Kushnir <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |CONFIRMED
            Version|unspecified                 |5.13.240180
     Ever confirmed|0                           |1
                 CC|                            |[email protected]

--- Comment #1 from Igor Kushnir <[email protected]> ---
The relevant code appears to be in
SourceFormatterController::FileFormatter::formatDocument() at
https://invent.kde.org/kdevelop/kdevelop/-/blob/8f23c66e87587db3116d81f14e7d7ea3caf03150/kdevplatform/shell/sourceformattercontroller.cpp#L729-735

I think the bug can be fixed by introducing new API
QVector<KTextEditor::Cursor> IDocument::allCursorPositions() and void
IDocument::setAllCursorPositions(const QVector<KTextEditor::Cursor> &); and
using the new API in formatDocument() to save and restore the cursor positions
of all views, not just the active one. Since this API does not exist yet,
similar bugs are possible elsewhere.

A merge request is welcome.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to