Re: [code] Getting current selection start/end

From: Mitchell <m.att.foicica.com>
Date: Mon, 20 Jun 2016 11:00:06 -0400 (EDT)

Hi,

On Mon, 20 Jun 2016, DrTebi wrote:

> It has been a while since I customized my TextEdit, but I think this
> should do the trick:
>
> local l = buffer.selection_n_end[0] - buffer.selection_n_start[0]

For the main selection, `buffer.selection_start` and
`buffer.selection_end` will work too.

Cheers,
Mitchell

-- 
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 Mon 20 Jun 2016 - 11:00:06 EDT

This archive was generated by hypermail 2.2.0 : Tue 21 Jun 2016 - 06:48:38 EDT