Re: [code] [textadept] Modifying non-global buffer

From: Chris Emerson <c-ta.att.mail.nosreme.org>
Date: Mon, 23 Sep 2013 07:25:35 +0100

On Sun, Sep 22, 2013 at 09:12:26AM +0100, Chris Emerson wrote:
> Would you expect it to be possible to update another split view by doing a
> (g)ui.goto_view before/after the buffer:append_text() in a Lua callback?
> I've had a quick go which didn't quite seem to work, but I'm not sure if
> I've got it quite right (and if the view's being refreshed when needed).

Update: this does seem to work - a pair of goto_view calls around the
buffer:append_text does the trick. It still relies on the other buffer
being visible somewhere, though, of course.

Regards,

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 Mon 23 Sep 2013 - 02:25:35 EDT

This archive was generated by hypermail 2.2.0 : Mon 23 Sep 2013 - 06:49:32 EDT