From 833cf26aa7c694d22930b6e8bf09c347b37c7a2a Mon Sep 17 00:00:00 2001 From: cxl Date: Thu, 12 Jan 2017 07:48:16 +0000 Subject: [PATCH] Core: Speller now searching in more paths in Posix git-svn-id: svn://ultimatepp.org/upp/trunk@10700 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Speller.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uppsrc/Core/Speller.cpp b/uppsrc/Core/Speller.cpp index 904aefb9f..78baff3ae 100644 --- a/uppsrc/Core/Speller.cpp +++ b/uppsrc/Core/Speller.cpp @@ -147,6 +147,9 @@ Speller *sGetSpeller(int lang) DoSpellerPath(pp, GetExeDirFile("scd")); DoSpellerPath(pp, ConfigFile("scd")); pp << spell_path << ';' << getenv("LIB") << ';' << getenv("PATH") << ';'; +#ifdef PLATFORM_POSIX + pp << "/usr/share/upp;/usr/local/share/upp;/usr/share/upp/scd;/usr/local/share/upp/scd"; +#endif String path = GetFileOnPath(ToLower(LNGAsText(lang)) + ".udc", pp); if(IsNull(path)) path = GetFileOnPath(ToLower(LNGAsText(lang)) + ".scd", pp);