achown: use Space key to invert current permission flag.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2017-09-04 15:26:26 +03:00
parent fe63828b8b
commit aa36eb38ce

View File

@ -401,6 +401,11 @@ perm_button_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, v
case 'r':
b->hotpos = i;
/* fallthrough */
case ' ':
i = b->hotpos;
flag_pos = f_pos * 3 + i;
if (b->text.start[flag_pos % 3] == '-')
ch_flags[flag_pos] = '+';