Re: [textadept] Close buffer and unsplit view

From: mitchell <c....at.caladbolg.net>
Date: Wed, 22 Feb 2012 07:26:34 -0500 (Eastern Standard Time)

Hi,

On Wed, 22 Feb 2012, HyperHacker wrote:

> I'm trying to make a hotkey to close the current buffer and then
> unsplit the view. This seems simple enough:
>
> keys['csw'] = function() view.buffer:close() view:unsplit() end
>
> But what that ends up doing is closing *all* buffers and not
> unsplitting the view at all! Why is this?

csw is the normal key command to close all buffers. Perhaps your function
is not being called at all. I ran your code using the command entry and it
worked as expected.

mitchell
Received on Wed 22 Feb 2012 - 07:26:34 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:31:37 EST