Re: select all text behavior

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

Yes, it helps. Just removing the restore on buffer switch, if that
happens before an esc is easiest and fine by me.

> You could save the position as a table with the filename as a key
> pos[buffer.filename] = buffer.current_pos
> and check this, or save the buffer id by looping through _BUFFERS and
> saving it once you found the current id.
> Maybe just something like (within the above snippet)?
> delete_esc = events.connect('buffer_before_switch', function()
>   events.disconnect('keypress', restore)
>   events.disconnect('buffer_before_switch', delete_esc)
> end)
>
> Hope this helps,
Received on Mon 13 Dec 2010 - 03:41:02 EST

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