mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-01 00:54:24 +03:00
achown: use Space key to invert current permission flag.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
fe63828b8b
commit
aa36eb38ce
@ -401,6 +401,11 @@ perm_button_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, v
|
|||||||
|
|
||||||
case 'r':
|
case 'r':
|
||||||
b->hotpos = i;
|
b->hotpos = i;
|
||||||
|
/* fallthrough */
|
||||||
|
|
||||||
|
case ' ':
|
||||||
|
i = b->hotpos;
|
||||||
|
|
||||||
flag_pos = f_pos * 3 + i;
|
flag_pos = f_pos * 3 + i;
|
||||||
if (b->text.start[flag_pos % 3] == '-')
|
if (b->text.start[flag_pos % 3] == '-')
|
||||||
ch_flags[flag_pos] = '+';
|
ch_flags[flag_pos] = '+';
|
||||||
|
Loading…
Reference in New Issue
Block a user