util: clarify a bit of the code for parsing commands in wmgenmenu
commitb75ac967d9d880c59e2f5316f69373f5b12ee12e
authorChristophe CURIS <christophe.curis@free.fr>
Fri, 4 Jul 2014 21:28:47 +0000 (4 23:28 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 6 Jul 2014 00:07:55 +0000 (6 01:07 +0100)
tree36fc38c43e601b9ac1a309b713e2771e9e0a4cf5
parentf90df24915c9982d952a94cbf384e98bff405217
util: clarify a bit of the code for parsing commands in wmgenmenu

When a command is given for a menu to be run through a terminal, there is
a piece of code that removes everything from a '!' to the end of the line.

The original code was too dense and not really optimal, so this patch
proposes a more explicit code, mainly for maintainability.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
util/wmgenmenu.c