Re: [code] Re: goto_line doesn't scroll into view

From: Mitchell <m.att.foicica.com>
Date: Mon, 11 Apr 2016 19:35:00 -0400 (EDT)

Hi Michael,

On Tue, 12 Apr 2016, Michael Richter wrote:

> Answering my own question about a workaround,
> -e"line_scroll(17);goto_line(17)" does the trick. It would still be nice
> to have goto_line() scroll as it's supposed to when issued using -e, though.

I'd use "-e 'textadept.editing.goto_line(17)'" which takes care of
ensuring the caret is visible by scrolling. The Scintilla documentation
states that `goto_line()` doesn't do any scrolling so that's in part why
`textadept.editing.goto_line()` exists.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Mon 11 Apr 2016 - 19:35:00 EDT

This archive was generated by hypermail 2.2.0 : Tue 12 Apr 2016 - 06:40:02 EDT