Re: [code] [textadept] Don't show line numbers

From: Mitchell <m.att.foicica.com>
Date: Sun, 2 Jun 2019 15:49:17 -0400 (EDT)

Hi Lukas,

On Sun, 2 Jun 2019, Procházka Lukáš Ing. wrote:

> Hello Mitchell,
>
> On Sun, 02 Jun 2019 01:28:40 +0200, Mitchell <m.att.foicica.com> wrote:
>
>> Try this:
>>
>> events.connect(events.VIEW_NEW, function()
>> buffer.margin_width_n[0] = 0
>> end)
>
> it seem it is not enough.
>
> I created 'init.lua' with just the code above, and a session with 3 open
> files within 3 views.
>
> [snip]

You are correct. Sorry for overlooking the fact that you also need to use that handler with `events.FILE_OPENED`.

   events.connect(events.VIEW_NEW, function()
     buffer.margin_width_n[0] = 0
   end)
   events.connect(events.FILE_OPENED, function()
     buffer.margin_width_n[0] = 0
   end)

The above works for me.

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 Sun 02 Jun 2019 - 15:49:17 EDT

This archive was generated by hypermail 2.2.0 : Mon 03 Jun 2019 - 06:36:38 EDT