From: NeilBrown Date: Wed, 12 Jul 2023 22:10:25 +0000 (+1000) Subject: Fix return of Action X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=45096fa60b69ed550db1a9068ad93d31efc74d46;p=edlib.git Fix return of Action If Action doesn't find an action tag it must return Efallthrough so some other pane has a change to handle K:Enter Signed-off-by: NeilBrown --- diff --git a/render-lines.c b/render-lines.c index 90ac61b1..2d47b38d 100644 --- a/render-lines.c +++ b/render-lines.c @@ -1580,8 +1580,9 @@ DEF_CMD(render_lines_action) measure_line(p, focus, v, offset); attr = pane_attr_get(v->mdata, "cursattr"); tag = get_action_tag(ci->str, attr); - if (tag) - call(tag, focus, 0, m, attr); + if (!tag) + return Efallthrough; + call(tag, focus, 0, m, attr); return 1; }