1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 22:36:38 +02:00

Fix aspell bug: don't consider apostrophe as a word delimiter

This commit is contained in:
Sebastien Helleu
2009-04-07 09:41:48 +02:00
parent b27f57ecb3
commit 8ec4187d7b
+3 -2
View File
@@ -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) || iswspace (utf8_char_int))
while ((!iswalnum (utf8_char_int) && (utf8_char_int != '\''))
|| iswspace (utf8_char_int))
{
char_size = weechat_utf8_char_size (ptr_string);
memcpy (result + index_result, ptr_string, char_size);
@@ -784,7 +785,7 @@ 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))
while (iswalnum (utf8_char_int) || (utf8_char_int == '\''))
{
ptr_end = weechat_utf8_next_char (ptr_end);
if (!ptr_end[0])