- Timestamp:
- Sep 30, 2009, 1:02:36 AM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- a3a9eb7
- Parents:
- 76e0e4a
- git-author:
- David Benjamin <davidben@mit.edu> (09/23/09 00:44:40)
- git-committer:
- David Benjamin <davidben@mit.edu> (09/30/09 01:02:36)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/lib/BarnOwl/Complete/Client.pm
r76e0e4a r6035008 151 151 sub complete_filter_expr { 152 152 my $ctx = shift; 153 my $start = shift; 153 154 154 my @completions = (); 155 _complete_filter_expr($ctx, $start, \@completions);155 _complete_filter_expr($ctx, 0, \@completions); 156 156 # Get rid of duplicates and sort 157 157 my %hash = (); … … 202 202 # We pass stop_at_nonflag, so we can rewind to the start 203 203 my $idx = $ctx->word - $arg; 204 return complete_filter_expr($ctx, $idx); 204 $ctx = $ctx->shift_words($idx); 205 return complete_filter_expr($ctx); 205 206 }, 206 207 stop_at_nonflag => 1 … … 217 218 } 218 219 if ($ctx->words->[1] eq "-d") { 219 return complete_filter_expr($ctx, 2); 220 $ctx = $ctx->shift_words(2); 221 return complete_filter_expr($ctx); 220 222 } 221 223 if ($ctx->words->[1] eq "-s") {
Note: See TracChangeset
for help on using the changeset viewer.