summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorBoris Gjenero <boris.gjenero@gmail.com>2017-04-23 23:27:57 -0400
committerBoris Gjenero <boris.gjenero@gmail.com>2017-05-06 21:34:21 -0400
commit1b4ee1f33a7c7a7890dd343e65ec8df1531ccabf (patch)
treec34f923e0fb2e0a75b3a1c6c0cedb610338aab74 /apps
parent271c30f206fe9bef414efd437e3287b7a6aae527 (diff)
downloadrockbox-1b4ee1f33a7c7a7890dd343e65ec8df1531ccabf.tar.gz
rockbox-1b4ee1f33a7c7a7890dd343e65ec8df1531ccabf.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/text_editor.c2
1 files changed, 1 insertions, 1 deletions
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)
459 case ACTION_STD_CONTEXT: 459 case ACTION_STD_CONTEXT:
460/* These targets have unintuitive STD_MENU keymaps, so we use context keymap instead; 460/* These targets have unintuitive STD_MENU keymaps, so we use context keymap instead;
461 We don't need the "delete line" action, since this can be done via the menu. */ 461 We don't need the "delete line" action, since this can be done via the menu. */
462#if !(defined(SAMSUNG_YH92X_PAD) || defined(SAMSUNG_YH820_PAD)) 462#if (CONFIG_KEYPAD != SAMSUNG_YH92X_PAD) && (CONFIG_KEYPAD != SAMSUNG_YH820_PAD)
463 if (!line_count) break; 463 if (!line_count) break;
464 rb->strlcpy(copy_buffer, do_action(ACTION_GET, 0, cur_sel), 464 rb->strlcpy(copy_buffer, do_action(ACTION_GET, 0, cur_sel),
465 MAX_LINE_LEN); 465 MAX_LINE_LEN);