[Vimperator] uppercase test only when alpha are existent
Martin Stubenschrott
stubenschrott at gmx.net
Tue Jul 3 04:49:55 PDT 2007
On Tue, Jul 03, 2007 at 02:49:10AM +0200, calmar wrote:
> if the buffer has any Alpha-Charaters in it. If not, it should not
> open a new tab (it should use false as the first argument in
> vimperator.hints.openHints(false,false)
>
> E.g. when I set hintchars=0123456789 I want *not* a 'new-tab' to
> my default, therefore the tweak above.
You're right, thanks for the patch, i will probably try to include them.
Probably, because hints are scheduled for a rewrite which would get rid
of the hintchars variable. Reason is that for a link "more" it would
make more sense to have "MO" as the tag then "JK" e.g.
However, the rewrite is a little on hold now, so i might put in you fix
for now as it is quite short anyway.
I also thought that it might be simpler to just check if the hint
mathces /[a-zA-Z]/ to see if it contains alphachars.
Thanks for the patch tough!
Martin
More information about the Vimperator
mailing list