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

From: Procházka Lukáš Ing. <LPr.att.pontex.cz>
Date: Sun, 02 Jun 2019 00:13:22 +0200

Hello,

I have 3 views in TA.

I'd would like to NOT DISPLAY line numbers for all of them. (It's more complicated in real case, but let's have a minimalistic sample.)

I placed the code into 'events.INITIALIZED' handler:

---- init.lua
events.connect(events.INITIALIZED, function(...)
   for _, view in ipairs(_VIEWS) do
     local buf = view.buffer

     buf.margin_width_n[0] = 0 -- Don't display line numbers
   end

   for _, buf in ipairs(_BUFFERS) do
     buf.margin_width_n[0] = 0 -- Don't display line numbers
   end
end)

----
But the code removes line numbers in ony ONE view... What am I doing wrong?
Best regards,
Lukas
-- 
Ing. Lukáš Procházka | mailto:LPr.att.pontex.cz
Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS: nrpt3sn | IČO: 40763439
Bezová 1658
147 14 Praha 4
Mob.: +420 702 033 396
-- 
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 Sat 01 Jun 2019 - 18:13:22 EDT

This archive was generated by hypermail 2.2.0 : Sun 02 Jun 2019 - 06:40:02 EDT