Re: Re: [code][textadept] Some questions about buffer.set_theme()

From: Keresztes Barna <kbarna.att.gmail.com>
Date: Tue, 20 Mar 2018 15:41:14 +0100

On 18/03/2018 16:46, Mitchell wrote:
> At the end of your function you can put this:
>
>   if buffer.get_lexer then buffer:set_lexer(buffer:get_lexer()) end --
> refresh
>
> It's a bit of hack, but that should immediately refresh the entire
> buffer's styles.
>
> Cheers,
> Mitchell
...but unfortunately it causes an infinite recursion (and stack
overflow) - at least on 10.0 alpha1.

-- 
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 Tue 20 Mar 2018 - 10:41:14 EDT

This archive was generated by hypermail 2.2.0 : Wed 21 Mar 2018 - 06:47:57 EDT