diff options
| author | ailin-nemui | 2016-10-31 15:30:19 +0100 |
|---|---|---|
| committer | GitHub | 2016-10-31 15:30:19 +0100 |
| commit | 682bcf49381e488c93e765d601590feca5399ed4 (patch) | |
| tree | d4d145e829c79cdcd20050016b502e5ecdb67a9c | |
| parent | f2501b905ee3196c202e5abc9efea3f79ca4b5ad (diff) | |
| parent | f54128f189c0896175336846fe8ee3b1eb48b26e (diff) | |
| download | scripts.irssi.org-682bcf49381e488c93e765d601590feca5399ed4.tar.bz2 | |
Merge pull request #314 from pierrot14/fix_aspell
Fix aspell
| -rw-r--r-- | scripts/aspell.pl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/aspell.pl b/scripts/aspell.pl index b6a254e..71369f3 100644 --- a/scripts/aspell.pl +++ b/scripts/aspell.pl @@ -85,6 +85,7 @@ See README file. use warnings; use strict; use Data::Dumper; +use Encode 'decode'; use Irssi; use Irssi::Irc; use Irssi::TextUI; @@ -107,7 +108,7 @@ if ($@ && $@ =~ m/Can't locate/) { } -our $VERSION = '1.6.1'; +our $VERSION = '1.6.2'; our %IRSSI = ( authors => 'Isaac Good (yitz_), Tom Feist (shabble)', contact => 'irssi@isaacgood.com, shabble+irssi@metavore.org', @@ -306,6 +307,7 @@ sub process_word { } else { print_suggestions(); + highlight_incorrect_word($word_obj); } } else { @@ -391,7 +393,8 @@ sub spellcheck_finish { # stick the cursor at the end of the input line? my $input = _input(); - my $end = length($input); + my $charset = lc Irssi::settings_get_str('term_charset'); + my $end = length(decode $charset=>$input); Irssi::gui_input_set_pos($end); } |
