X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=edit.c;h=7abbb09ac9a1150fb2ec1c983459dcd90cdc42d1;hb=b1b41dce461ab21ae9a2bd26d7a00a381a5f81f8;hp=100488d78e866c9302bb9acd589363f903609c85;hpb=6e541862e5e10bbc7e71dcafa4ff60f19272c66f;p=pkg%2Fabook.git diff --git a/edit.c b/edit.c index 100488d..7abbb09 100644 --- a/edit.c +++ b/edit.c @@ -147,7 +147,8 @@ print_editor_header(int item) else snprintf(header, EDITW_COLS, "%s", database[item][NAME]); - mvwaddstr(editw, 0, (EDITW_COLS - strlen(header)) / 2, + fprintf(stderr, "%d\n", strwidth(header)); + mvwaddstr(editw, 0, (EDITW_COLS - strwidth(header)) / 2, header); free(header);