diff options
| author | Ailin Nemui | 2016-01-29 08:59:40 -0300 |
|---|---|---|
| committer | dequis | 2016-01-29 10:44:31 -0300 |
| commit | 996e450bee675aa20a843a23f4fd229123e2100e (patch) | |
| tree | bdea274311ff8f71113d659cc15ab4474064e46b /scripts | |
| parent | 6ebd8cd619bda55c5e9fe29ba540f2bd359aed93 (diff) | |
| download | scripts.irssi.org-996e450bee675aa20a843a23f4fd229123e2100e.tar.bz2 | |
aspell_complete: Fix crash when the dictionary is unset
This will be fixed on the irssi side too.
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 }; |
