Re: [code] unexpected behavior when writing buffer.selection_mode

From: Mitchell <>
Date: Mon, 26 Feb 2018 11:09:00 -0500 (EST)


Yes, this is a *really* late reply and perhaps you have moved on, but I wanted to close the loop on this.

On Mon, 10 Jun 2013, Benjamin Kober wrote:

> Hi,
> I'm working on a vim module for textadept
> (
> For movements I would like to use buffer.selection_mode so that I don't
> need to use <function>, <function>_extend, <function>_rect_extend for
> every mode while the movement is still the same.
> When I tried it I stuck on several issues:
> * |_SCINTILLA.constants.SC_SEL_LINES seems to be the same as character
> selection
> * ||_SCINTILLA.constants.SC_SEL_RECTANGLE moves the caret always to the
> first line
> Is this the right behavior? Is this variable meant as read-only?
> Any ideas how I can change the selection_mode without defining it again
> with every caret move?

I managed to submit an upstream patch to Scintilla to fix this. It was accepted and is in the latest nightly build.


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Mon 26 Feb 2018 - 11:09:00 EST

This archive was generated by hypermail 2.2.0 : Tue 27 Feb 2018 - 06:44:23 EST