1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2026-01-04 09:01:06 +01:00

25777: argument to gdbmsetfn()

unposted: recognise ~[ in completion after : and =
This commit is contained in:
Peter Stephenson 2008-09-30 08:59:11 +00:00
parent e3fd25b181
commit 7e9f42526d
3 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2008-09-30 Peter Stephenson <pws@csr.com>
* unposted: Completion/Zsh/Context/_subscript: recognise ~[...]
after = and :, too.
* 25777: Src/Modules/db_gdbm.c: argument to gdbmsetfn.
2008-09-29 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 25775: Src/exec.c, Src/prompt.c, Src/signals.c, Src/zsh.h:
@ -844,7 +851,7 @@
2008-06-30 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 25258: Completion/Unix/Type/_path_files: donʼt
* 25258: Completion/Unix/Type/_path_files: don't
use -M option with -U.
2008-06-30 Peter Stephenson <pws@csr.com>

View file

@ -14,10 +14,11 @@ compset -P '\(([^\(\)]|\(*\))##\)' # remove subscript flags
# the stuff inside the square brackets; we need to find out what's
# outside. We ought to check for quoting, really, but given we've
# got to the subscript code " ~[" is pretty likely to be a dynamic
# name expansion.
# name expansion. Also expand in anything that looks like an assignment
# or colon list.
integer pos=$((CURSOR+1))
while [[ pos > 1 && $BUFFER[pos-1] != '[' ]]; do (( pos-- )); done
if [[ $BUFFER[1,pos] = *[[:space:]]##\~\[ ]]; then
if [[ $BUFFER[1,pos] = *[[:space:]:=]##\~\[ ]]; then
_dynamic_directory_name
elif [[ "$PREFIX" = :* ]]; then
_wanted characters expl 'character class' \

View file

@ -135,7 +135,7 @@ gdbmgetfn(Param pm)
/**/
static void
gdbmsetfn(Param pm, char **val)
gdbmsetfn(Param pm, char *val)
{
datum key, content;
int ret;