mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-19 09:21:30 +03:00
Line completion: sort and uniquify lines
This commit is contained in:
parent
9148b1ae92
commit
535a454349
@ -737,6 +737,8 @@ public:
|
|||||||
}
|
}
|
||||||
if (res.empty())
|
if (res.empty())
|
||||||
return {};
|
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() };
|
return { cursor_pos.line, cursor_pos, std::move(res), buffer.timestamp() };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user