tui: abort on unexpected enum value (#8266)

ref #8261
This commit is contained in:
John Szakmeister
2018-04-12 19:03:00 -04:00
committed by Justin M. Keyes
parent 1c3a849881
commit 27e26b10a2

View File

@@ -937,7 +937,7 @@ static void tui_set_mode(UI *ui, ModeShape mode)
int shape;
switch (c.shape) {
default:
default: abort(); break;
case SHAPE_BLOCK: shape = 1; break;
case SHAPE_HOR: shape = 3; break;
case SHAPE_VER: shape = 5; break;