Subject: Re: backward-kill-shell-word widget
From: Bart Schaefer <[email-masked]>
To: Zsh hackers list <[email-masked]>
Date: Thu, 14 Apr 2016 09:21:24 -0700
List-Id: Zsh Workers List <zsh-workers.zsh.org>

On Sun, Jan 10, 2016 at 9:17 AM, Bart Schaefer
<[email-masked]> wrote:
>
> As of 5.0.8 you can do this with:
>
>     backward-kill-shell-word() {
>       zle select-in-shell-word
>       ((++CURSOR))  # adjust for vi vs. emacs region
>       zle kill-region
>     }
>
> I'm not sure if that CURSOR adjustment is a a bug or just a necessary
> evil because of using vi binding in the emacs keymap.

Following up to this because select-in-shell-word has just been fixed
to make the increment of CURSOR unnecessary, so as of 5.3 that line
should be dropped from the above example function.