From 3ce313b383bb35930795c41b81196ecebbe592fe Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Fri, 24 Aug 2012 16:56:16 -0400 Subject: Make clicking a favedit Rm link return to the favedit page --- about.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/about.c b/about.c index 59da947..cef627b 100644 --- a/about.c +++ b/about.c @@ -787,19 +787,22 @@ xtp_handle_ab(struct tab *t, uint8_t cmd, int arg, const char *query) void xtp_handle_fl(struct tab *t, uint8_t cmd, int arg, const char *query) { + struct karg args = {0}; + switch (cmd) { case XT_XTP_FL_LIST: /* nothing, just the below call to xtp_page_fl() */ break; case XT_XTP_FL_REMOVE: remove_favorite(t, arg); + args.i = XT_DELETE; break; default: show_oops(t, "%s: invalid favorites command", __func__); break; }; - xtp_page_fl(t, NULL); + xtp_page_fl(t, &args); } void -- cgit 1.4.1-2-gfad0