about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-08-24 16:56:16 -0400
committerJosh Rickmar <jrick@devio.us>2012-08-24 16:56:16 -0400
commit3ce313b383bb35930795c41b81196ecebbe592fe (patch)
tree7115361398d738b3240717e4ef2ff2f1e5572c5b
parent78b12002823904c9143a632492e294ea4f071e47 (diff)
downloadxombrero-3ce313b383bb35930795c41b81196ecebbe592fe.tar.gz
Make clicking a favedit Rm link return to the favedit page
-rw-r--r--about.c5
1 files changed, 4 insertions, 1 deletions
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