Ticket #55067: patch-kateviewhelpers.diff
File patch-kateviewhelpers.diff, 657 bytes (added by NicosPavlov, 7 years ago) |
---|
-
part/view/kateviewhelpers.cpp
old new 1703 1703 if (realLine > -1) { 1704 1704 if (m_viewInternal->cache()->viewLine(z).startCol() == 0) { 1705 1705 if (m_viRelLineNumbersOn && m_view->viInputMode()) { 1706 int diff = abs(realLine - currentLine);1706 int diff = abs(realLine - (int)currentLine); 1707 1707 if (diff > 0) { 1708 1708 p.drawText( lnX + m_maxCharWidth / 2, y, lnWidth - m_maxCharWidth, h, 1709 1709 Qt::TextDontClip|Qt::AlignRight|Qt::AlignVCenter, QString("%1").arg(diff) );