From 3242af3ce0d53876faedabcab7b0b1fe54d43856 Mon Sep 17 00:00:00 2001 From: "Christopher S. Corley" Date: Wed, 17 Jun 2020 22:22:17 -0400 Subject: [PATCH] Adjust indentation & brace to follow lint rules Signed-off-by: Christopher S. Corley --- src/kaleidoscope/plugin/SpaceCadet.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/kaleidoscope/plugin/SpaceCadet.cpp b/src/kaleidoscope/plugin/SpaceCadet.cpp index 4007be05..befca2c5 100644 --- a/src/kaleidoscope/plugin/SpaceCadet.cpp +++ b/src/kaleidoscope/plugin/SpaceCadet.cpp @@ -118,11 +118,11 @@ EventHandlerResult SpaceCadet::onKeyswitchEvent(Key &mapped_key, KeyAddr key_add ++i ) { - if (map[i].flagged - && map[i].input != mapped_key) { - other_mapped_key_flagged = true; - break; - } + if (map[i].flagged + && map[i].input != mapped_key) { + other_mapped_key_flagged = true; + break; + } } //This will only set one key, and, if it isn't in our map, it clears everything for the non-pressed key @@ -141,8 +141,7 @@ EventHandlerResult SpaceCadet::onKeyswitchEvent(Key &mapped_key, KeyAddr key_add //Only activate this as part of the mapping if there isn't already a //key waiting for timeout. This allows us to return OK later and for //this loop to inject all the other flagged keys - if (!other_mapped_key_flagged) - { + if (!other_mapped_key_flagged) { //The keypress was valid and a match. Mark it as flagged and reset the counter map[i].flagged = true; map[i].start_time = Runtime.millisAtCycleStart();