Changeset View
Changeset View
Standalone View
Standalone View
src/view/kateviewinternal.cpp
Show First 20 Lines • Show All 606 Lines • ▼ Show 20 Line(s) | |||||
607 | 607 | | |||
608 | // If changed is true, the lines that have been set dirty have been updated. | 608 | // If changed is true, the lines that have been set dirty have been updated. | ||
609 | void KateViewInternal::updateView(bool changed, int viewLinesScrolled) | 609 | void KateViewInternal::updateView(bool changed, int viewLinesScrolled) | ||
610 | { | 610 | { | ||
611 | if (!isVisible() && !viewLinesScrolled && !changed) { | 611 | if (!isVisible() && !viewLinesScrolled && !changed) { | ||
612 | return; //When this view is not visible, don't do anything | 612 | return; //When this view is not visible, don't do anything | ||
613 | } | 613 | } | ||
614 | 614 | | |||
615 | view()->doc()->delayAutoReload(); // Don't reload while user scrolls around | ||||
615 | bool blocked = m_lineScroll->blockSignals(true); | 616 | bool blocked = m_lineScroll->blockSignals(true); | ||
616 | 617 | | |||
617 | int wrapWidth = width(); | 618 | int wrapWidth = width(); | ||
618 | if (view()->config()->dynWrapAtStaticMarker() && view()->config()->dynWordWrap()) { | 619 | if (view()->config()->dynWrapAtStaticMarker() && view()->config()->dynWordWrap()) { | ||
619 | // We need to transform char count to a pixel width, stolen from PrintPainter::updateCache() | 620 | // We need to transform char count to a pixel width, stolen from PrintPainter::updateCache() | ||
620 | QString s; s.fill(QLatin1Char('5'), view()->doc()->config()->wordWrapAt()); | 621 | QString s; s.fill(QLatin1Char('5'), view()->doc()->config()->wordWrapAt()); | ||
621 | wrapWidth = qMin(width(), static_cast<int>(renderer()->currentFontMetrics().width(s))); | 622 | wrapWidth = qMin(width(), static_cast<int>(renderer()->currentFontMetrics().width(s))); | ||
622 | } | 623 | } | ||
▲ Show 20 Lines • Show All 3250 Lines • Show Last 20 Lines |