raven/base/mc/0001-Ticket-4576-fix-visual-glitches-by-avoiding-g_module.patch

16 lines
669 B
Diff

diff -Naur a/src/editor/spell.c b/src/editor/spell.c
--- a/src/editor/spell.c 2024-08-08 13:49:18.000000000 +0600
+++ b/src/editor/spell.c 2024-10-03 16:07:15.840030146 +0600
@@ -174,8 +174,9 @@
spell_module = g_module_open ("libaspell", G_MODULE_BIND_LAZY);
- if (spell_module != NULL
- && ASPELL_FUNCTION_AVAILABLE (new_aspell_config)
+ if (spell_module == NULL)
+ return FALSE;
+ if (ASPELL_FUNCTION_AVAILABLE (new_aspell_config)
&& ASPELL_FUNCTION_AVAILABLE (aspell_dict_info_list_elements)
&& ASPELL_FUNCTION_AVAILABLE (aspell_dict_info_enumeration_next)
&& ASPELL_FUNCTION_AVAILABLE (new_aspell_speller)