diff options
author | Berke Viktor <berkeviktor@aol.com> | 2012-02-16 17:36:34 +0100 |
---|---|---|
committer | Berke Viktor <berkeviktor@aol.com> | 2012-02-16 17:36:34 +0100 |
commit | 6e72d77bdd215fa585523c0138361adf67d954b9 (patch) | |
tree | 73aff7e0c58b43ba67cb2eefd9bec153f7e00a8e /plugins | |
parent | a27d2e4d0bb1d0926473b95d0a2c1d58955a7edc (diff) | |
parent | 605c3dea36918a631d917269d78bf9557552608b (diff) |
Merge branch 'master' into wdk
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/perl/alt_completion.pl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/perl/alt_completion.pl b/plugins/perl/alt_completion.pl index 2572fb81..71c1884d 100644 --- a/plugins/perl/alt_completion.pl +++ b/plugins/perl/alt_completion.pl @@ -30,8 +30,11 @@ my $ignore_leading_non_alnum = 0; my $path_completion = 1; my $base_path = ''; +# ignore the completion_amount setting and always cycle through nicks with tab +my $always_cycle = 0; + Xchat::register( - "Tab Completion", "1.0401", "Alternative tab completion behavior" + "Tab Completion", "1.0500", "Alternative tab completion behavior" ); Xchat::hook_print( "Key Press", \&complete ); Xchat::hook_print( "Close Context", \&close_context ); @@ -203,8 +206,9 @@ sub complete { # don't cycle if the number of possible completions is greater than # completion_amount if( + !$always_cycle && ( @{$completions->{matches}} > $completion_amount - && @{$completions->{matches}} != 1 + && @{$completions->{matches}} != 1 ) ) { # don't print if we tabbed in the beginning and the list of possible # completions includes all nicks in the channel |