Re: [code] [textadept] Select paragraph

From: Mitchell <m.att.foicica.com>
Date: Thu, 17 Oct 2013 10:16:09 -0400 (Eastern Daylight Time)

Robert,

On Tue, 15 Oct 2013, Robert Gieseke wrote:

> Hi,
>
> the editing.select_paragraph function does a
>
> buffer:para_up()
> buffer:para_down_extend()
>
> When the caret is on the first line of a paragraph this selects the
> paragraph before the one I intended to select.
> Any ideas how to fix this? I tried adding a
>
> buffer:line_down()
>
> before `para_up` which seems to work for first and last line of a
> paragraph, but this feels a bit hackish.

Hackish, but probably necessary. Thanks for the tip.

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 Thu 17 Oct 2013 - 10:16:09 EDT

This archive was generated by hypermail 2.2.0 : Fri 18 Oct 2013 - 06:30:40 EDT