Re: [code] [textadept] Edge mode per buffer

From: Mitchell <m.att.foicica.com>
Date: Mon, 29 Jul 2019 10:45:53 -0400 (EDT)

Hi,

On Sun, 28 Jul 2019, Qwerky wrote:

> Hi.  Is it possible to have buffer.edge_mode = buffer.EDGE_LINE for one
> buffer, and at the same time buffer.edge_mode = buffer.EDGE_MULTILINE for
> another buffer?  If so, does each buffer have its own set of multi-lines? 
> Thanks.

Yes, but you'd have to hook things up manually via `events.BUFFER_BEFORE_SWITCH` and `events.BUFFER_AFTER_SWITCH` events. Textadept's *core/ui.lua* around lines 335 and 350 does this in order to allow each buffer to have its own view state.

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 29 Jul 2019 - 10:45:53 EDT

This archive was generated by hypermail 2.2.0 : Tue 30 Jul 2019 - 06:49:56 EDT