diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-08-02 11:07:06 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-08-02 11:07:06 +0000 |
commit | 744f07f55439bc4b5d99d4fe0082ab640aad476c (patch) | |
tree | 69e093a3c0c3e44e1835d1922a46e8021e2f0ec8 /apps | |
parent | 31ff52cee6c57cf380a34706fe94fbfa271c2160 (diff) | |
download | rockbox-744f07f55439bc4b5d99d4fe0082ab640aad476c.tar.gz rockbox-744f07f55439bc4b5d99d4fe0082ab640aad476c.zip |
fix FS#6754 - the standard context menu action will now delete the selected line
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14137 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/text_editor.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c index 3c9bf7d7bf..3ac8cab3f2 100644 --- a/apps/plugins/text_editor.c +++ b/apps/plugins/text_editor.c | |||
@@ -434,18 +434,12 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
434 | } | 434 | } |
435 | } | 435 | } |
436 | break; | 436 | break; |
437 | #ifdef TEXT_EDITOR_DELETE | 437 | case ACTION_STD_CONTEXT: |
438 | case TEXT_EDITOR_DELETE: | ||
439 | #ifdef TEXT_EDITOR_DELETE_PRE | ||
440 | if (last_button != TEXT_EDITOR_DELETE_PRE) | ||
441 | break; | ||
442 | #endif | ||
443 | if (!line_count) break; | 438 | if (!line_count) break; |
444 | rb->strcpy(copy_buffer,&buffer[do_action(ACTION_GET,0,cur_sel)]); | 439 | rb->strcpy(copy_buffer,&buffer[do_action(ACTION_GET,0,cur_sel)]); |
445 | do_action(ACTION_REMOVE,0,cur_sel); | 440 | do_action(ACTION_REMOVE,0,cur_sel); |
446 | changed = true; | 441 | changed = true; |
447 | break; | 442 | break; |
448 | #endif | ||
449 | case ACTION_STD_MENU: | 443 | case ACTION_STD_MENU: |
450 | { /* do the item menu */ | 444 | { /* do the item menu */ |
451 | switch (do_item_menu(cur_sel, copy_buffer)) | 445 | switch (do_item_menu(cur_sel, copy_buffer)) |