Re: [code] [textadept] I found a simple and reproducible bug in textadept, regarding buffer.tab_width and init.lua.

From: Mitchell <m.att.foicica.com>
Date: Fri, 18 May 2018 12:34:50 -0400 (EDT)

Hi Volker,

On Fri, 18 May 2018, Volker Weißmann wrote:

> Hello,
>
> I found a simple and reproducible bug in textadept. To reproduce it execute
> the following commands on a linux-system without textadept installed (tested
> on Ubuntu 16.04 and Ubuntu 17.10):
>
> curl https://foicica.com/textadept/download/textadept_LATEST.x86_64.tgz -o
> textadept.tgz
> tar -xzf textadept.tgz
> mkdir ~/.textadept
> echo "buffer.tab_width=8" > ~/.textadept/init.lua
> ./textadept_9.6.x86_64/textadept # or textadeptjit or textadept-curses or
> textadeptjit-curses
>
> Expected outcome: Textadept starts and tab width is set to 8 spaces.
>
> Observed outcome: Textadept starts but tab width is set to 2 spaces.
>
> Note: If I execute "buffer.tab_width=8" by pressing Ctrl+E, it works.
>
>
> I would be thankful if anyone could fix this bug.

You need to put your `buffer` settings in *~/.textadept/properties.lua* in order to for them to take effect across all buffers. Please see *doc/manual.html* in the Textadept archive, and not on the website. Beginning in Textadept 10 you can put your `buffer` settings in *init.lua*.

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 Fri 18 May 2018 - 12:34:50 EDT

This archive was generated by hypermail 2.2.0 : Sat 19 May 2018 - 06:37:53 EDT