mirror of
https://github.com/textmate/textmate.git
synced 2026-01-21 04:38:13 -05:00
Ignore non-UTF-8 completion command results
This commit is contained in:
@@ -103,10 +103,10 @@ namespace ng
|
||||
|
||||
if(delegate->result != NULL_STR)
|
||||
{
|
||||
citerate(line, text::tokenize(delegate->result.begin(), delegate->result.end(), '\n'))
|
||||
for(auto line : text::tokenize(delegate->result.begin(), delegate->result.end(), '\n'))
|
||||
{
|
||||
if(!(*line).empty())
|
||||
commandResult.push_back(*line);
|
||||
if(!line.empty() && utf8::is_valid(line.begin(), line.end()))
|
||||
commandResult.push_back(line);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user