diff --git a/terminal.c b/terminal.c index 06f41e44..afc9b2c2 100644 --- a/terminal.c +++ b/terminal.c @@ -1085,19 +1085,21 @@ static termline *lineptr(Terminal *term, int y, int lineno, int screen) /* We assume that we don't screw up and retrieve something out of range. */ if (line == NULL) { + extern const char commitid[]; /* in version.c */ modalfatalbox("line==NULL in terminal.c\n" "lineno=%d y=%d w=%d h=%d\n" "count(scrollback=%p)=%d\n" "count(screen=%p)=%d\n" "count(alt=%p)=%d alt_sblines=%d\n" - "whichtree=%p treeindex=%d\n\n" + "whichtree=%p treeindex=%d\n" + "commitid=%s\n\n" "Please contact " "and pass on the above information.", lineno, y, term->cols, term->rows, term->scrollback, count234(term->scrollback), term->screen, count234(term->screen), term->alt_screen, count234(term->alt_screen), - term->alt_sblines, whichtree, treeindex); + term->alt_sblines, whichtree, treeindex, commitid); } assert(line != NULL);