diff --git a/users/plodah/functions/autocorrect_indicator.c b/users/plodah/functions/autocorrect.c similarity index 87% rename from users/plodah/functions/autocorrect_indicator.c rename to users/plodah/functions/autocorrect.c index 332906eef89..42c43549609 100644 --- a/users/plodah/functions/autocorrect_indicator.c +++ b/users/plodah/functions/autocorrect.c @@ -64,13 +64,18 @@ #endif // RGB_MATRIX_ENABLE +bool process_autocorrect_user(uint16_t *keycode, keyrecord_t *record, uint8_t *typo_buffer_size, uint8_t *mods) { +# if defined(PLODAH_BORING_LAYER) + if( get_highest_layer(layer_state) == PLODAH_BORING_LAYER){ + return false; + } +# endif // defined(PLODAH_BORING_LAYER) + return true; +} + bool apply_autocorrect(uint8_t backspaces, const char *str, char *typo, char *correct) { # if defined(RGB_MATRIX_ENABLE) - for (uint8_t i = 0; i < backspaces; ++i) { - tap_code(KC_BSPC); - } - send_string_P(str); plodah_autocorrect_indicator_start(); # endif // RGB_MATRIX_ENABLE - return false; + return true; } diff --git a/users/plodah/plodah.c b/users/plodah/plodah.c index 0064d85dee3..224968c12ad 100644 --- a/users/plodah/plodah.c +++ b/users/plodah/plodah.c @@ -43,7 +43,7 @@ // AUTOCORRECT // //=======================// #if defined(AUTOCORRECT_ENABLE) -# include "functions/autocorrect_indicator.c" +# include "functions/autocorrect.c" #endif // AUTOCORRECT_ENABLE //====================//