From 1b4ee1f33a7c7a7890dd343e65ec8df1531ccabf Mon Sep 17 00:00:00 2001 From: Boris Gjenero Date: Sun, 23 Apr 2017 23:27:57 -0400 Subject: Fix Samsung YH92X/YH820 keypad conditional in text_editor All the *_PAD values are always #defined. So the change made in 5e91ec1 was applied to all devices instead of only those it was meant to be applied to. Change-Id: Iba72316ecf2e3c83132b47484731cd177686b19e --- apps/plugins/text_editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c index 5452f4524f..0eb1bb1dcc 100644 --- a/apps/plugins/text_editor.c +++ b/apps/plugins/text_editor.c @@ -459,7 +459,7 @@ enum plugin_status plugin_start(const void* parameter) case ACTION_STD_CONTEXT: /* These targets have unintuitive STD_MENU keymaps, so we use context keymap instead; We don't need the "delete line" action, since this can be done via the menu. */ -#if !(defined(SAMSUNG_YH92X_PAD) || defined(SAMSUNG_YH820_PAD)) +#if (CONFIG_KEYPAD != SAMSUNG_YH92X_PAD) && (CONFIG_KEYPAD != SAMSUNG_YH820_PAD) if (!line_count) break; rb->strlcpy(copy_buffer, do_action(ACTION_GET, 0, cur_sel), MAX_LINE_LEN); -- cgit v1.2.3