summaryrefslogtreecommitdiff
path: root/apps/plugins/text_editor.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-06-18 13:57:05 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-06-18 13:57:05 +0000
commit1b947de1adf91adf311876f8c7f1a3e7cd7200a7 (patch)
treea7976337d1a32c59046a1e6b3ce1ed3ce2208306 /apps/plugins/text_editor.c
parent46e186fa61acac1cdf02db597b0cac05de189cfa (diff)
downloadrockbox-1b947de1adf91adf311876f8c7f1a3e7cd7200a7.zip
rockbox-1b947de1adf91adf311876f8c7f1a3e7cd7200a7.tar.gz
rockbox-1b947de1adf91adf311876f8c7f1a3e7cd7200a7.tar.bz2
rockbox-1b947de1adf91adf311876f8c7f1a3e7cd7200a7.tar.xz
s/icons/colors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13666 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/text_editor.c')
-rw-r--r--apps/plugins/text_editor.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c
index 9435969..97ceae5 100644
--- a/apps/plugins/text_editor.c
+++ b/apps/plugins/text_editor.c
@@ -330,7 +330,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
static char copy_buffer[MAX_LINE_LEN];
bool prev_show_statusbar;
#ifdef HAVE_LCD_COLOR
- bool edit_icons_file = false;
+ bool edit_colors_file = false;
#endif
rb = api;
@@ -359,9 +359,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
return PLUGIN_ERROR;
}
#ifdef HAVE_LCD_COLOR
- c = rb->strchr(filename, '.');
- if (c && rb->strcmp(c, ".icons"))
- edit_icons_file = true;
+ c = rb->strrchr(filename, '.');
+ if (c && !rb->strcmp(c, ".colors"))
+ edit_colors_file = true;
#endif
/* read in the file */
while (rb->read_line(fd,temp_line,MAX_LINE_LEN))
@@ -404,7 +404,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
if (line_count)
rb->strcpy(temp_line,&buffer[do_action(ACTION_GET,0,cur_sel)]);
#ifdef HAVE_LCD_COLOR
- if (edit_icons_file)
+ if (edit_colors_file)
{
char *name = temp_line, *value = NULL;
char extension[MAX_LINE_LEN];