From 605c3dea36918a631d917269d78bf9557552608b Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Thu, 16 Feb 2012 17:34:40 +0100 Subject: update xchat to r1501 --- plugins/perl/alt_completion.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'plugins') 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 -- cgit 1.4.1