diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-04-07 09:46:03 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-04-07 09:46:03 +0200 |
commit | 564afdc75de7bb2e13bd53397f599cf6a2e6a62f (patch) | |
tree | 34ee21604d37cc12e38ad1d1cefd10bb59680bc1 /src | |
parent | 8ec4187d7b937a37745404a1d0b30815ec04204b (diff) | |
download | weechat-564afdc75de7bb2e13bd53397f599cf6a2e6a62f.zip |
Fix another aspell bug: don't consider '-' as a word delimiter
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/aspell/weechat-aspell.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/aspell/weechat-aspell.c b/src/plugins/aspell/weechat-aspell.c index 5f2abedc2..74724edec 100644 --- a/src/plugins/aspell/weechat-aspell.c +++ b/src/plugins/aspell/weechat-aspell.c @@ -769,7 +769,8 @@ weechat_aspell_modifier_cb (void *data, const char *modifier, { /* find start of word */ utf8_char_int = weechat_utf8_char_int (ptr_string); - while ((!iswalnum (utf8_char_int) && (utf8_char_int != '\'')) + while ((!iswalnum (utf8_char_int) && (utf8_char_int != '\'') + && (utf8_char_int != '-')) || iswspace (utf8_char_int)) { char_size = weechat_utf8_char_size (ptr_string); @@ -785,7 +786,8 @@ weechat_aspell_modifier_cb (void *data, const char *modifier, ptr_end = weechat_utf8_next_char (ptr_string); utf8_char_int = weechat_utf8_char_int (ptr_end); - while (iswalnum (utf8_char_int) || (utf8_char_int == '\'')) + while (iswalnum (utf8_char_int) || (utf8_char_int == '\'') + || (utf8_char_int == '-')) { ptr_end = weechat_utf8_next_char (ptr_end); if (!ptr_end[0]) |