Re: [code] Feature request: snippet._insert should allow replacing the selection

From: Mitchell <m.att.foicica.com>
Date: Tue, 4 Apr 2017 13:24:00 -0400 (EDT)

Hi Pedro,

On Sun, 2 Apr 2017, Pedro Andres Aranda Gutierrez wrote:

> Hi Mitchell
>
> lots of confusion with the snippets and %<selected_text>. I think have
> figured out what puzzles me (see attached screenshot to follow).
>
> So left is the ini.file right is a text file. Lines 1, 2, 3 and 10 are what
> happens if I apply any of the snippets to a line that is completely
> selected: selected text is kept and result of snippet is appended at end
> of line. This behaviour is unexpected and cause of my woes.
>
> Lines 4,5,6 and 7 are the correct behaviour of the first snippet and that
> only happens when we select a line partially (a word, or a couple of words
> from a line.

Sorry for the trouble :( I have confirmed the bug and will commit a fix
when I have some time.

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 Tue 04 Apr 2017 - 13:24:00 EDT

This archive was generated by hypermail 2.2.0 : Wed 05 Apr 2017 - 06:37:21 EDT