Switch to unified view
a/src/aspell/rclaspell.cpp | b/src/aspell/rclaspell.cpp | ||
---|---|---|---|
... |
... |
||
319 | ExecCmd cmd; |
319 | ExecCmd cmd; |
320 | args.clear(); |
320 | args.clear(); |
321 | args.push_back("dicts"); |
321 | args.push_back("dicts"); |
322 | string dicts; |
322 | string dicts; |
323 | bool hasdict = false; |
323 | bool hasdict = false; |
324 | if (!cmd.doexec(m_data->m_exec, args, 0, &dicts)) {
|
324 | if (cmd.doexec(m_data->m_exec, args, 0, &dicts)) { |
325 | vector<string> vdicts; |
325 | vector<string> vdicts; |
326 | stringToTokens(dicts, vdicts, "\n\r\t "); |
326 | stringToTokens(dicts, vdicts, "\n\r\t "); |
327 | if (find(vdicts.begin(), vdicts.end(), m_lang) != vdicts.end()) { |
327 | if (find(vdicts.begin(), vdicts.end(), m_lang) != vdicts.end()) { |
328 | hasdict = true; |
328 | hasdict = true; |
329 | } |
329 | } |