Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Off-by-one with select-*-shell-word text object?
- X-seq: zsh-workers 39377
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Off-by-one with select-*-shell-word text object?
- Date: Sat, 17 Sep 2016 07:29:18 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=Uhwjs0Q45GOJAKzB6J7MLOEPMIOvrft/qB+vcvzZz60=; b=awXcFPVO6bpjM739CiVSRUcxP2Yk3o4wWhB/9s4YIujlnK0thCaPsVVWybggY38EK1 W6+iRorxMzmSJSh1eCgesr1Aouq9RAwdj7NTP+LnAWjkA/3v7gUy4Zs7VGeSXt/DvVQR k0WeXQVGumNhHsCsEt+HeoQVdfMdOC9L2UN6uWaXSQnGivSl39xNjB8ORWTJw+CgkO29 xWZJWgnLWYLAj7QnNjkUAXVPm19z0JcScR8ps6haE85gXKOD0dJywe2CiC2rX0VKRA8E D53mnc6IOCgVQ4wBPGx5j5C6OYnr/+BmAQ+L4XU+o6fZ3s41Up0UrAZ0JSEgoD8KevUC nGuw==
- In-reply-to: <20160917074259.GA26221@fujitsu.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <160916102137.ZM11290@torch.brasslantern.com> <76020.1474058827@hydra.kiddle.eu> <160916142248.ZM26196@torch.brasslantern.com> <10734.1474068633@hydra.kiddle.eu> <160916200205.ZM27241@torch.brasslantern.com> <20160917074259.GA26221@fujitsu.shahaf.local2>
On Sep 17, 7:42am, Daniel Shahaf wrote:
}
} I think it would be cleaner to invent a new bitmask flag and set it on
} the affected widgets (select-*-word, run-help, etc) than to overload
} WIDGET_INT for this purpose.
It's not overloading WIDGET_INT, it's overloading ZLE_VIOPER - because
those are the only cases of builtins that want the opposite case (point
to the caller). Testing WIDGET_INT is only necessary because the sense
of setbindk is reversed from the sense of ZLE_VIOPER.
} Whether a widget is implemented in C or in shell has no bearing on
} whether it assumes that $WIDGET points to itself.
At the moment that's not true; a widget implemented in shell can never
safely assume that $WIDGET points to itself.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author