From 2c51dabfeb8f48c4fc1280ae02ae56cd246045c5 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 8 May 2015 15:30:41 +0100 Subject: [PATCH] put assert back to protect against bad logic in frontend drag implementations --- render/box_textarea.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/render/box_textarea.c b/render/box_textarea.c index 1de6c9813..eb865beac 100644 --- a/render/box_textarea.c +++ b/render/box_textarea.c @@ -151,6 +151,10 @@ static void box_textarea_callback(void *data, struct textarea_msg *msg) default: LOG(("Drag type %d not handled.", msg->data.drag)); + /* This is a logic faliure in the + * front end code so abort. + */ + assert(0); break; } }