[code] [textadept] buffer.position_relative()

From: Chris Emerson <c-ta.att.mail.nosreme.org>
Date: Wed, 6 May 2015 14:31:57 +0100

Hi,

I noticed that buffer.position_relative() (as well as position_after())
doesn't do what's documented. The documentation says "Returns...
buffer.length if the position is greater than buffer.length"; however it
seems to actually return 0.

I think the problem is actually in Scintilla, which calls an internal
function which returns -1 for out of range, and then clamps that to the
buffer bounds. The documented Textadept behaviour seems much more useful.
:-)

Chris

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 06 May 2015 - 09:31:57 EDT

This archive was generated by hypermail 2.2.0 : Thu 07 May 2015 - 06:37:51 EDT