From: Ivan Brkanac <ibrkanac@gmail.com>
Cc: zsh-users@zsh.org
Subject: Re: $terminfo for up and down arow
Date: Fri, 10 Jan 2014 13:38:40 +0100 [thread overview]
Message-ID: <CALRKU=GMswJjURDEtx7_jSAdnZ89vVWuFSRLeVAKxkK4=q010w@mail.gmail.com> (raw)
In-Reply-To: <87zjn6x17n.fsf@ft.bewatermyfriend.org>
Quote from ticket:
"""
I have found the problem. It's an upstream bug, as I have suspected,
but I have also found the way to get around it.
I am defining three functions with the same function body to not
repeat myself. Even though I have verified that the functions have
been defined properly, they exist, my zle-line-init and
zle-line-finish are not being called. Something must have changed in
recent Zsh versions that affects this.
When I split that code into three distinct function definitions, it works.
"""
version 5.0.5 is also affected
On Wed, Jan 8, 2014 at 10:38 AM, Frank Terbeck <ft@bewatermyfriend.org> wrote:
> Frank Terbeck wrote:
> [...]
>> zle-line-init () {
>> (( ${+terminfo[smkx]} )) && echoti smkx
>> }
>> zle-line-finish () {
>> (( ${+terminfo[rmkx]} )) && echoti rmkx
>> }
>
> For the record, you also need to make these known as widgets for zle to
> pick them up, so:
>
> zle -N zle-line-init
> zle -N zle-line-finish
>
> Regards, Frank
>
> --
> In protocol design, perfection has been reached not when there is
> nothing left to add, but when there is nothing left to take away.
> -- RFC 1925
next prev parent reply other threads:[~2014-01-10 12:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-08 8:33 Ivan Brkanac
2014-01-08 8:55 ` Frank Terbeck
2014-01-08 9:38 ` Frank Terbeck
2014-01-10 12:38 ` Ivan Brkanac [this message]
2014-01-10 12:48 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CALRKU=GMswJjURDEtx7_jSAdnZ89vVWuFSRLeVAKxkK4=q010w@mail.gmail.com' \
--to=ibrkanac@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).