From f7532ff1efcf957ae8d879f455734feb53dbe083 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 3 Jun 2014 17:12:25 -0700 Subject: [PATCH] Actually use the ?dictionary token. Closes #1761. --- src/spellchecker_hunspell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spellchecker_hunspell.cpp b/src/spellchecker_hunspell.cpp index 53ee66f84..08f628034 100644 --- a/src/spellchecker_hunspell.cpp +++ b/src/spellchecker_hunspell.cpp @@ -155,7 +155,7 @@ std::vector HunspellSpellChecker::GetSuggestions(std::string const& static std::vector langs(const char *filter) { std::vector paths; - auto data_path = config::path->Decode("?data/dictionaries/"); + auto data_path = config::path->Decode("?dictionary/"); auto user_path = config::path->Decode(OPT_GET("Path/Dictionary")->GetString()); agi::fs::DirectoryIterator(data_path, filter).GetAll(paths); @@ -191,7 +191,7 @@ void HunspellSpellChecker::OnLanguageChanged() { agi::fs::path aff, dic; auto path = config::path->Decode(OPT_GET("Path/Dictionary")->GetString() + "/"); if (!check_path(path, language, aff, dic)) { - path = config::path->Decode("?data/dictionaries/"); + path = config::path->Decode("?dictionary/"); if (!check_path(path, language, aff, dic)) return; }