question on unsplitting a view when encountering a lua error

From: Scott Weisman <sweis....at.gmail.com>
Date: Mon, 13 Dec 2010 01:32:32 -0800 (PST)

I added this to my init.lua file:

keys.cw = { function ()
    if buffer._type then
        buffer:close()
        gui.goto_view(-1, false)
        view:unsplit()
    else
        buffer:close()
    end
end }

(Thanks to whomever provided it.)

However, I have to hit ctrl-w twice to get the view to unsplit and
close. The first ctrl-w results in "Invalid sequence" in the
statusbar. The second works as expected. Can someone explain what's
wrong with the above?
Received on Mon 13 Dec 2010 - 04:32:32 EST

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