From 506615ff94c7784e974f13034f04db87427b367e Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sat, 14 May 2011 00:07:41 +0000 Subject: 29267: add -enable-zsh-debug and use for debugging completion matcher groups --- Src/Zle/compctl.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Src/Zle/compctl.c') diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c index 873d9287a..170efff3f 100644 --- a/Src/Zle/compctl.c +++ b/Src/Zle/compctl.c @@ -1838,6 +1838,11 @@ ccmakehookfn(UNUSED(Hookdef dummy), struct ccmakedat *dat) diffmatches = odm; validlist = 1; amatches = lastmatches; +#ifdef ZSH_HEAP_DEBUG + if (memory_validate(amatches->heap_id)) { + HEAP_ERROR(amatches->heap_id); + } +#endif lmatches = lastlmatches; if (pmatches) { freematches(pmatches, 1); -- cgit v1.2.3 From 72cb7cfc6fff21d3fb9b3f1aa384ce4b17a4e8c0 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Thu, 19 May 2011 16:10:46 +0000 Subject: 29307, 29308 + replies: Fix some doubled words in docs and comments. --- ChangeLog | 7 ++++++- Completion/BSD/Command/_bsd_pkg | 2 +- Completion/Base/Utility/_sep_parts | 2 +- Completion/Unix/Command/_git | 2 +- Completion/Unix/Command/_osc | 2 +- Completion/Unix/Command/_perforce | 2 +- Completion/compinit | 2 +- Completion/openSUSE/Command/_osc | 2 +- Completion/openSUSE/Command/_zypper | 2 +- Doc/Zsh/builtins.yo | 2 +- Doc/Zsh/calsys.yo | 2 +- Doc/Zsh/compctl.yo | 2 +- Doc/Zsh/compsys.yo | 4 ++-- Doc/Zsh/compwid.yo | 2 +- Doc/Zsh/contrib.yo | 10 +++++----- Doc/Zsh/expn.yo | 2 +- Doc/Zsh/zle.yo | 6 +++--- Etc/CONTRIBUTORS | 2 +- Etc/ChangeLog-3.0 | 2 +- Functions/Calendar/calendar_parse | 2 +- Functions/Misc/sticky-note | 2 +- Functions/TCP/tcp_read | 2 +- Functions/Zftp/zfcput | 2 +- Src/Zle/compctl.c | 2 +- Src/Zle/zle_hist.c | 2 +- Src/exec.c | 2 +- Src/hist.c | 2 +- Src/jobs.c | 2 +- Src/lex.c | 2 +- Src/math.c | 2 +- Src/params.c | 2 +- Src/subst.c | 4 ++-- 32 files changed, 45 insertions(+), 40 deletions(-) (limited to 'Src/Zle/compctl.c') diff --git a/ChangeLog b/ChangeLog index 34b5a3bbd..c59967ba7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-05-19 Mikael Magnusson + + * 29307, 29308 + replies: Fix some doubled words in docs and + comments. + 2011-05-18 Wayne Davison * Valentin Haenel: 29315: Completion/Unix/Command/_git: add a @@ -14747,5 +14752,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.5311 $ +* $Revision: 1.5312 $ ***************************************************** diff --git a/Completion/BSD/Command/_bsd_pkg b/Completion/BSD/Command/_bsd_pkg index 8cc1a6230..9f4b0f11a 100644 --- a/Completion/BSD/Command/_bsd_pkg +++ b/Completion/BSD/Command/_bsd_pkg @@ -178,7 +178,7 @@ _bsd_pkg() { '-m[show mtree files]' '-p[show installation prefixes]' '-q[be quiet]' - '-R[show list list of installed requiring packages]' + '-R[show list of installed requiring packages]' '-r[show requirements scripts]' '-v[be verbose]' ) diff --git a/Completion/Base/Utility/_sep_parts b/Completion/Base/Utility/_sep_parts index 6e6c1beed..de836a696 100644 --- a/Completion/Base/Utility/_sep_parts +++ b/Completion/Base/Utility/_sep_parts @@ -96,7 +96,7 @@ suffixes=("") autosuffix=() while [[ $# -gt 0 && "$str" == *${1}* ]]; do - # Remove anything up to the the suffix. + # Remove anything up to the suffix. str="${str#*${1}}" diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 2ebeef094..2f6188824 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -131,7 +131,7 @@ _git-archive () { '--format=-[format of the resulting archive]:archive format:__git_archive_formats' \ '(- :)'{-l,--list}'[list available archive formats]' \ '(-v --verbose)'{-v,--verbose}'[report progress to stderr]' \ - '--prefix=-[prepend the given path prefix to to each filename]:path prefix:_directories -r ""' \ + '--prefix=-[prepend the given path prefix to each filename]:path prefix:_directories -r ""' \ '--output=[write archive to argument instead of stdout]:archive:_files' \ '--worktree-attributes[look for attributes in .gitattributes in working directory too]' \ $backend_args \ diff --git a/Completion/Unix/Command/_osc b/Completion/Unix/Command/_osc index 2808f92ee..c15b40af2 100644 --- a/Completion/Unix/Command/_osc +++ b/Completion/Unix/Command/_osc @@ -4,7 +4,7 @@ # # This file is released under the GPLv2. # -# Based on the the zsh guide from http://zsh.dotsrc.org/Guide/zshguide06.html +# Based on the zsh guide from http://zsh.dotsrc.org/Guide/zshguide06.html # # Toggle verbose completions: zstyle ':completion:*:osc:*' verbose no # zstyle ':completion:*:osc-subcommand:*' verbose no diff --git a/Completion/Unix/Command/_perforce b/Completion/Unix/Command/_perforce index 0cef1f7da..08c42cbce 100644 --- a/Completion/Unix/Command/_perforce +++ b/Completion/Unix/Command/_perforce @@ -2605,7 +2605,7 @@ _perforce_cmd_tickets() { _perforce_cmd_triggers() { _arguments -s : \ '-o[output form to stdout]' \ - '-i[read from from stdin]' + '-i[read from stdin]' } diff --git a/Completion/compinit b/Completion/compinit index fc3625fc7..d3c5e28b5 100644 --- a/Completion/compinit +++ b/Completion/compinit @@ -26,7 +26,7 @@ # expand-or-complete, expand-or-complete-prefix, list-choices, # menu-complete, menu-expand-or-complete, or reverse-menu-complete). # This creates a widget behaving like