Re: [code] [textadept] Temporarily change caret policy while searching?

From: Peter Kazmier <>
Date: Mon, 8 Apr 2013 19:26:52 -0500

On Apr 7, 2013, at 10:56 PM, Mitchell <> wrote:

> [snip]
>> I was going to hack find.lua to change the policy before the view is
>> scrolled and then reset it to what it's value was afterwards. The only
>> problem is that I can't figure out how to get the current setting. Any
>> ideas? Does this bother you too?
> Try calling buffer:vertical_centre_caret() instead of fiddling with the caret policy.

Thanks for the tip. I'll play around with this to see if I can figure a way to only invoke if the it's the only match on the visible portion of the screen. It seems both emacs and vim do this behavior and oddly it's one that I miss a lot!

You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Mon 08 Apr 2013 - 20:26:52 EDT

This archive was generated by hypermail 2.2.0 : Tue 09 Apr 2013 - 06:49:34 EDT