summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/custom.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/custom.c b/src/custom.c
index df7feef..d569f00 100644
--- a/src/custom.c
+++ b/src/custom.c
@@ -980,6 +980,12 @@ void custom_keys_config(void)
} else
not_recognized = 0;
+ /* Is the binding used by this action already? If so, just end the reassignment */
+ if (selrow == keys_get_action(keyval)) {
+ delwin(grabwin);
+ break;
+ }
+
used = keys_assign_binding(keyval, selrow);
if (used) {
enum key action;