Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Remove (probably?) unhelpful check in narrow-to-region
- X-seq: zsh-workers 22806
- From: Peter Stephenson <pws@xxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Re: Remove (probably?) unhelpful check in narrow-to-region
- Date: Mon, 2 Oct 2006 11:08:36 +0100
- In-reply-to: <237967ef0610011550m68473684q1184eb22b5190f33@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: Cambridge Silicon Radio
- References: <237967ef0610011550m68473684q1184eb22b5190f33@xxxxxxxxxxxxxx>
"Mikael Magnusson" <mikachu@xxxxxxxxx> wrote:
> With this change, you can press set-mark, narrow-to-region with the
> cursor in the same place, without it you always have to include one
> character in the narrowed region.
I've changed it; I don't think I ever tried this out, but there's
no reason why it shouldn't work.
> PS I tried to include some ansi color codes in the -p and -P arguments
> but they just get printed literally, would it be possible to print
> them evaluated instead? I stared at the code for 5 minutes but
> couldn't figure out where the extra quoting is added.
At this point in the code we're dealing entirely with items supposedly
directly added by the user, which are therefore made visible in
zle_refresh.c. General handling for highlighting would be very useful but
isn't that easy. It's particularly hard if you want to track the start and
end of special effects through future modifications to the line.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
Messages sorted by:
Reverse Date,
Date,
Thread,
Author