Line completion: sort and uniquify lines
This commit is contained in:
parent
9148b1ae92
commit
535a454349
|
@ -737,6 +737,8 @@ public:
|
|||
}
|
||||
if (res.empty())
|
||||
return {};
|
||||
std::sort(res.begin(), res.end());
|
||||
res.erase(std::unique(res.begin(), res.end()), res.end());
|
||||
return { cursor_pos.line, cursor_pos, std::move(res), buffer.timestamp() };
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user