Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Regression in bracketed-paste-magic (not in 5.2, but affects 5.3's test releases)



On Dec 7, 2016, at 7:39 AM, Oliver Kiddle <okiddle@xxxxxxxxxxx> wrote:
> I don't use bracketed-paste-magic so would appreciate if someone
> else could do some testing ...
> 
> diff --git a/Functions/Zle/bracketed-paste-magic b/Functions/Zle/bracketed-paste-magic
> index fb584d5..c3cc8b6 100644
> --- a/Functions/Zle/bracketed-paste-magic
> +++ b/Functions/Zle/bracketed-paste-magic
> @@ -151,10 +151,10 @@ bracketed-paste-magic() {
> 	integer bpm_mark=$MARK bpm_region=$REGION_ACTIVE
> 	integer bpm_numeric=${NUMERIC:-1}
> 	integer bpm_limit=$UNDO_LIMIT_NO bpm_undo=$UNDO_CHANGE_NO
> -	BUFFER=
> -	CURSOR=1
> 	zle .split-undo
> 	UNDO_LIMIT_NO=$UNDO_CHANGE_NO
> +	BUFFER=
> +	CURSOR=1
> 	fc -p -a /dev/null 0 0
> 	if [[ $bmp_keymap = vicmd ]]; then
> 	    zle -K viins

I applied the patch and played around for a while; the issue appears to be
fixed.



Messages sorted by: Reverse Date, Date, Thread, Author