forked from speedie/spmenu
oops turns out these lines are necessary
This commit is contained in:
parent
4ef9075dbe
commit
0072498f09
14
spmenu.c
14
spmenu.c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue