forked from lix-project/lix
Completions::add(): Guard against newlines
This commit is contained in:
parent
ea4b2b985f
commit
59bd6e87a4
|
@ -19,6 +19,7 @@ void Args::addFlag(Flag && flag_)
|
||||||
|
|
||||||
void Completions::add(std::string completion, std::string description)
|
void Completions::add(std::string completion, std::string description)
|
||||||
{
|
{
|
||||||
|
assert(description.find('\n') == std::string::npos);
|
||||||
insert(Completion {
|
insert(Completion {
|
||||||
.completion = completion,
|
.completion = completion,
|
||||||
.description = description
|
.description = description
|
||||||
|
|
Loading…
Reference in a new issue