~ubuntu-branches/ubuntu/karmic/zsh/karmic

« back to all changes in this revision

Viewing changes to Completion/Base/Core/_normal

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2009-06-02 10:40:25 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090602104025-lg6wynxpzqi08k2i
Tags: 4.3.10-1ubuntu1
* Resynchronise with Debian. Remaining changes:
  + debian/zshrc: Enable completions by default, unless
    skip_global_compinit is set

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
  _compskip=''
10
10
fi
11
11
 
 
12
# Check for a history reference to complete modifiers.
 
13
# $PREFIX has a quoted form of the !, so we can't test that
 
14
# (it might the start of a real argument), but words has the
 
15
# raw McCoy.
 
16
if [[ -o BANG_HIST &&
 
17
     ( ( $words[CURRENT] = \!*: && -z $compstate[quote] ) ||
 
18
       ( $words[CURRENT] = \"\!*: && $compstate[all_quotes] = \" ) ) ]]; then
 
19
  # This looks like a real history expansion; in that case
 
20
  # we'd better put the !'s back the way pfalstad intended.
 
21
  PREFIX=${PREFIX//\\!/!}
 
22
  compset -P '*:'
 
23
  _history_modifiers h
 
24
  return
 
25
fi
 
26
 
12
27
# Completing in command position?
13
28
 
14
29
if [[ CURRENT -eq 1 ]]; then