[code][textadept] view:split() initialization problem

From: Peter Rolf <indiego.att.gmx.net>
Date: Sat, 19 May 2018 14:39:52 +0200

Hi Mitchell,

I have a problem with new views in the latest version [Textadept 10.0
beta, W32 nightly build 2018-05-18].
When I call "view:split()", the new view isn't initialized properly (a
copy of the active buffer).

I used this test code

keys["f7"] = function()
        local old, new = view:split()
        persistence.store("t:/new.lua", new)
        persistence.store("t:/old.lua", old)
        new:goto_buffer(new.buffer)
        old:goto_buffer(old.buffer)
end
------
[new.lua]
-- Persistent Data
local multiRefObjects = {

} -- multiRefObjects
local obj1 = {
        ["widget_pointer"] = nil --[[userdata]]
;
        ["split"] = nil --[[non-lua function not supported]];
        ["goto_buffer"] = nil --[[non-lua function not supported]];
        ["unsplit"] = nil --[[non-lua function not supported]];
}
return obj1
-----

The new view is empty and complete black (no styles set, not even line
numbers are visible) and I have to activate the new view once to "bring
it to life".

Cheers, Peter

-- 
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 19 May 2018 - 08:39:52 EDT

This archive was generated by hypermail 2.2.0 : Sun 20 May 2018 - 06:31:30 EDT