From dc010201a5020b8b468a1a24a8fafb45a8986530 Mon Sep 17 00:00:00 2001 From: Teruaki Kawashima Date: Fri, 18 Dec 2009 14:17:28 +0000 Subject: 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 --- apps/plugins/text_editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins/text_editor.c') 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) break; case ACTION_REMOVE: if (line > line_count) - return 0; + return NULL; len = rb->strlen(&buffer[c])+1; rb->memmove(&buffer[c],&buffer[c+len],char_count-c-len); char_count -= len; @@ -225,7 +225,7 @@ enum { }; int do_item_menu(int cur_sel, char* copy_buffer) { - int ret = 0; + int ret = MENU_RET_NO_UPDATE; MENUITEM_STRINGLIST(menu, "Line Options", NULL, "Cut/Delete", "Copy", "Insert Above", "Insert Below", -- cgit v1.2.3