mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Core: Speller now searching in more paths in Posix
git-svn-id: svn://ultimatepp.org/upp/trunk@10700 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
3fcc9a7bc3
commit
833cf26aa7
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue