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

Re: [PATCH] Stop {up,down}-line-or-beginning-search from triggeing warn_create_global



Peter Stephenson wrote:
> Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx> wrote:
>> diff --git a/Functions/Zle/down-line-or-beginning-search b/Functions/Zle/down-line-or-beginning-search
>> index fbd2c33..ff3d1d2 100644
>> --- a/Functions/Zle/down-line-or-beginning-search
>> +++ b/Functions/Zle/down-line-or-beginning-search
>> @@ -1,6 +1,9 @@
>>...
>> +up-line-or-beginning-search "$@"
>
> This one should presumably be "down".

Meh. I should be attached to a device, that delivers an electric shock
every time I use copy-and-paste in source code...

> However, I'm not sure you need to go to these lengths (not that it's
> doing anything particularly out of the ordinary): I think using the
> "typeset -g" within the original functions would work OK.

You're right. The impact is probably negligible. I'll do it that way.

Regards, Frank



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