Re: Discovering TextAdept

From: Robert <ro....at.web.de>
Date: Mon, 15 Mar 2010 03:32:45 -0700 (PDT)

On Mar 15, 4:31 am, Samwyn <sam....at.s9.dion.ne.jp> wrote:
> > Where is this scroll position calculated?
>
> Calling buffer:set_sel at the 60th line in modules/textadept/
> session.lua.
> buffer:set_sel calls Scintillua's SCI_SETSEL directly, and the latter
> does the autoscroll to the carret.

Thanks! I found out, that buffer.x_offset can be used to set the
position as well.
Maybe buffer.x_offset could be saved in the session file and be reset
when restoring the session.

-Robert
Received on Mon 15 Mar 2010 - 06:32:45 EDT

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