mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-27 02:50:57 +01:00
51278: make (i) subscript flag for zero-length string consistent
This commit is contained in:
parent
857bc4343b
commit
03292bceec
3 changed files with 16 additions and 1 deletions
|
|
@ -1669,7 +1669,7 @@ getarg(char **str, int *inv, Value v, int a2, zlong *w,
|
|||
/* Searching characters */
|
||||
int slen;
|
||||
d = getstrvalue(v);
|
||||
if (!d || !*d)
|
||||
if (!d)
|
||||
return 0;
|
||||
/*
|
||||
* beg and len are character counts, not raw offsets.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue