This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 269451
Collapse All | Expand All

(-)a/editor.lib2/src/org/netbeans/api/editor/caret/EditorCaret.java (-1 / +8 lines)
Lines 1648-1654 Link Here
1648
                                caretFoldExpander.checkExpandFolds(c, expandFoldPositions);
1648
                                caretFoldExpander.checkExpandFolds(c, expandFoldPositions);
1649
                            }
1649
                            }
1650
                        }
1650
                        }
1651
                        if (activeTransaction.isDotOrStructuralChange()) {
1651
                        /* 269451: If we set scrollToLastCaret above, we need to let dispatchUpdate
1652
                                   happen so the former can be cleared again. A comment in
1653
                                   CaretTransaction suggests that scrolling really should happen
1654
                                   even if the dot offset is not changed. ("Scroll even if setDot()
1655
                                   to same offset"). */
1656
                        if (activeTransaction.isDotOrStructuralChange() ||
1657
                            activeTransaction.isScrollToLastCaret())
1658
                        {
1652
                            if (!inAtomicSectionL) {
1659
                            if (!inAtomicSectionL) {
1653
                                // For now clear the lists and use old way TODO update to selective updating and rendering
1660
                                // For now clear the lists and use old way TODO update to selective updating and rendering
1654
                                fireStateChanged(activeTransaction.getOrigin());
1661
                                fireStateChanged(activeTransaction.getOrigin());

Return to bug 269451