[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: KDE/kdelibs/kate/view
From:       Pascal =?iso-8859-15?q?L=E9tourneau?= <pascal.letourneau () gmail ! com>
Date:       2010-12-03 20:57:18
Message-ID: 201012031557.18904.pascal.letourneau () gmail ! com
[Download RAW message or body]

On December 3, 2010 05:41:43 Milian Wolff wrote:
> I still don't get why m_minLinesVisible is related to scrollPastEnd...

I scroll past the end when typing new text at end of a document, so it's 
convenient to respect m_minLinesVisible

I guess you want this:

    if (m_view->config()->scrollPastEnd())
      m_cachedMaxStartPos = viewLineOffset(end, --->0<---);
    else
      m_cachedMaxStartPos = viewLineOffset(end, -(linesDisplayed() - 1));

I prefer the current behavior

> The offset = 0 case should still be discussed / handled in viewLineOffset
> though. 

I disagree
If the cache is valid, all value of offset are ok
If the cache is invalid, any value of offset can possibly trigger the assert
(thisLine.virtualLine() == virtualCursor.line())

Pascal Létourneau
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic