Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: the function to show a digit argument while it is being typed
- X-seq: zsh-users 14553
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: the function to show a digit argument while it is being typed
- Date: Wed, 11 Nov 2009 11:46:10 -0800
- In-reply-to: <m3bpj87vgp.fsf@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <10081257897632@xxxxxxxxxxxxxxxxxxx> <237967ef0911101822g5bfcf4fao25fc33ba0a2e8604@xxxxxxxxxxxxxx> <091110204748.ZM28704@xxxxxxxxxxxxxxxxxxxxxx> <237967ef0911102217m1325dc59y8d7388e9f6f21c7b@xxxxxxxxxxxxxx> <091111001419.ZM28852@xxxxxxxxxxxxxxxxxxxxxx> <m3eio56o4i.fsf@xxxxxxxxxxxxxx> <091111094507.ZM30174@xxxxxxxxxxxxxxxxxxxxxx> <m3bpj87vgp.fsf@xxxxxxxxxxxxxx>
On Nov 11, 1:44pm, Greg Klanderman wrote:
} Subject: Re: the function to show a digit argument while it is being typed
}
} >>>>> On November 11, 2009 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
}
} > Here's a summarized version based on everything that's gone by so far.
}
} That's not working right with negative arguments for me - an initial
} neg-argument is ignored both in what is displayed, and in the effect
} of the eventual argument.
Hmm, it works for me starting from zsh -f. Note that you're not
supposed to replace the builtin neg-argument with anything, only
replace digit-argument with digit-argument-show. Which means that
neg-argument doesn't put anything in the status line until you give
the first digit, then that should show up as a negative number. I
should have made that clear.
If you want neg-argument to display the leading "-" you'll need to
use another wrapper.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author