oops turns out these lines are necessary

This commit is contained in:
speedie 2023-02-10 21:47:44 +01:00
parent 4ef9075dbe
commit 0072498f09

View file

@ -889,11 +889,19 @@ backspace(const Arg *arg)
void
selectitem(const Arg *arg)
{
if (!text)
char *selection;
if (sel) {
selection = sel->text;
} else {
selection = text;
}
if (!selection)
return;
puts(text);
savehistory(text);
puts(selection);
savehistory(selection);
cleanup();
exit(0);