[code] Possible GTK init problem

From: Markus F.X.J. Oberhumer <markus.att.oberhumer.com>
Date: Mon, 19 Sep 2016 15:16:32 +0200

I'm hitting a problem in the INITIALIZED event caused by the fact
that buffer.lines_on_screen is not set.

It works correctly in the Curses version, but the GTK version
always prints "lines_on_screen=0".

This could be some sort of initialization problem in textadept.c.

Any ideas?


---- START OF init.lua

local function replace_untitled_buffer()
  local l = string.format('%d', buffer.lines_on_screen)

events.connect(events.INITIALIZED, replace_untitled_buffer)

---- END OF init.lua

Markus Oberhumer, <markus@oberhumer.com>, http://www.oberhumer.com/
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 19 Sep 2016 - 09:16:32 EDT

This archive was generated by hypermail 2.2.0 : Tue 20 Sep 2016 - 06:53:26 EDT