Re: buffer list

From: Scott Weisman <sweis....at.gmail.com>
Date: Sun, 12 Dec 2010 23:58:30 -0800 (PST)

Here's what I have so far:

keys.ck = { function ()
    local buffer = buffer
    local events = events
    local items = {}

    for _, buffer in ipairs(_BUFFERS) do
        local filename = buffer.filename or buffer._type or 'UNTITLED'
        local dirty = buffer.dirty and '* ' or ''
        table.insert(items, 1, dirty .. filename)
-- items[#items + 1] = dirty .. filename
        buffer:user_list_show(BUFFER_LIST_TYPE, table.concat(items,
'|'))
    end
end }

When I invoke the above, I get this error:

...\Documents and Settings\sweisman/.textadept/init.lua:182: bad
argument #1 to '?' (the indexed Buffer is not the focused one)

Line 182 is the call to buffer:user_list_show.
Received on Mon 13 Dec 2010 - 02:58:30 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:56:01 EST