diff options
| author | ailin-nemui | 2016-01-29 14:47:57 +0100 |
|---|---|---|
| committer | ailin-nemui | 2016-01-29 14:47:57 +0100 |
| commit | 3e9b54b03b03763b29ea9b0025de914c140498e8 (patch) | |
| tree | bdea274311ff8f71113d659cc15ab4474064e46b /scripts | |
| parent | 6ebd8cd619bda55c5e9fe29ba540f2bd359aed93 (diff) | |
| parent | 996e450bee675aa20a843a23f4fd229123e2100e (diff) | |
| download | scripts.irssi.org-3e9b54b03b03763b29ea9b0025de914c140498e8.tar.bz2 | |
Merge pull request #229 from dequis/aspell_complete
aspell_complete: Fix crash when the dictionary is unset
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/aspell_complete.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/aspell_complete.pl b/scripts/aspell_complete.pl index da8d08c..93b2145 100644 --- a/scripts/aspell_complete.pl +++ b/scripts/aspell_complete.pl @@ -18,7 +18,7 @@ use vars qw($VERSION %IRSSI); use Irssi; use Text::Aspell; -$VERSION = '1.00'; +$VERSION = '1.01'; %IRSSI = ( authors => 'Philipp Haegi', contact => 'phaegi\@mimir.ch', @@ -59,7 +59,7 @@ sub rotate_dict() { Irssi::signal_add_last 'complete word' => sub { my ($complist, $window, $word, $linestart, $want_space) = @_; - push(@$complist, $speller->suggest( $word )); + push(@$complist, grep { defined } $speller->suggest( $word )); # eliminate null pointers }; |
