Am 26.06.2013 um 10:41 schrieb Jean-Marc Lasgouttes <lasgout...@lyx.org>:

> Le 26/06/2013 10:07, Stephan Witt a écrit :
>> How does this look?
>> 
>> bool Cursor::atFirstOrLastRowOfDocument(bool up)
>> {
>>    Cursor dummy = *this;
>>    bool result = dummy.atFirstOrLastRow(up);
>>    while (result && dummy.depth() > 1) {
>>       dummy.pop();
>>       result = dummy.atFirstOrLastRow(up);
>>    }
>>    return result;
>> }
> 
> Yes, I prefer this version.
> 
> JMarc

That's the final patch then.

Stephan

Attachment: 0004-LFUN_DOWN-if-cursor-is-on-last-line-move-to-end.patch
Description: Binary data

Reply via email to