diff options
author | okan | 2010-02-10 01:23:05 +0000 |
---|---|---|
committer | okan | 2010-02-10 01:23:05 +0000 |
commit | 44f1d87ca93fe43f15f30b19704549c26b550c99 (patch) | |
tree | 3b1b1a11555b38d72e1f2d3183d5245aae0d7fdb /menu.c | |
parent | 1617ae7c9f7259da782c0f829298490c9962ed41 (diff) | |
download | cwm-44f1d87ca93fe43f15f30b19704549c26b550c99.tar.gz |
preserve labels after an edit action is aborted; extending the menu
struct just for this is the least intrusive approach until the menu code
is reviewed.
inspired by Thomas Pfaff's report on tech@
ok oga@
Diffstat (limited to '')
-rw-r--r-- | menu.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -223,6 +223,7 @@ menu_handle_key(XEvent *e, struct menu_ctx *mc, struct menu_q *menuq, mc->searchstr, sizeof(mi->text)); mi->dummy = 1; } + mi->abort = 0; return (mi); case CTL_WIPE: mc->searchstr[0] = '\0'; @@ -235,6 +236,7 @@ menu_handle_key(XEvent *e, struct menu_ctx *mc, struct menu_q *menuq, mi = xmalloc(sizeof *mi); mi->text[0] = '\0'; mi->dummy = 1; + mi->abort = 1; return (mi); default: break; |