summaryrefslogtreecommitdiff
path: root/apps/plugins/text_editor.c
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2009-12-18 14:17:28 +0000
committerTeruaki Kawashima <teru@rockbox.org>2009-12-18 14:17:28 +0000
commitdc010201a5020b8b468a1a24a8fafb45a8986530 (patch)
treed07b364d2ee16ed4d0c4c9ad9818096c7e57f536 /apps/plugins/text_editor.c
parent3e2aba0c3eded353ba119e5df23968d70b1263c5 (diff)
downloadrockbox-dc010201a5020b8b468a1a24a8fafb45a8986530.tar.gz
rockbox-dc010201a5020b8b468a1a24a8fafb45a8986530.zip
make sure plugin reset backlight setting before exit. do code polish.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24076 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/text_editor.c')
-rw-r--r--apps/plugins/text_editor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c
index a8c8c2d836..4d5812ba2c 100644
--- a/apps/plugins/text_editor.c
+++ b/apps/plugins/text_editor.c
@@ -86,7 +86,7 @@ char* _do_action(int action, char* str, int line)
86 break; 86 break;
87 case ACTION_REMOVE: 87 case ACTION_REMOVE:
88 if (line > line_count) 88 if (line > line_count)
89 return 0; 89 return NULL;
90 len = rb->strlen(&buffer[c])+1; 90 len = rb->strlen(&buffer[c])+1;
91 rb->memmove(&buffer[c],&buffer[c+len],char_count-c-len); 91 rb->memmove(&buffer[c],&buffer[c+len],char_count-c-len);
92 char_count -= len; 92 char_count -= len;
@@ -225,7 +225,7 @@ enum {
225}; 225};
226int do_item_menu(int cur_sel, char* copy_buffer) 226int do_item_menu(int cur_sel, char* copy_buffer)
227{ 227{
228 int ret = 0; 228 int ret = MENU_RET_NO_UPDATE;
229 MENUITEM_STRINGLIST(menu, "Line Options", NULL, 229 MENUITEM_STRINGLIST(menu, "Line Options", NULL,
230 "Cut/Delete", "Copy", 230 "Cut/Delete", "Copy",
231 "Insert Above", "Insert Below", 231 "Insert Above", "Insert Below",