Add utf8_padcstr and use it to align columns in list-keys.

This commit is contained in:
nicm
2015-11-12 12:43:36 +00:00
parent 1da7475d0e
commit a209ea3953
3 changed files with 39 additions and 10 deletions

1
tmux.h
View File

@ -2194,6 +2194,7 @@ struct utf8_data *utf8_fromcstr(const char *);
char *utf8_tocstr(struct utf8_data *);
u_int utf8_cstrwidth(const char *);
char *utf8_trimcstr(const char *, u_int);
char *utf8_padcstr(const char *, u_int);
/* procname.c */
char *get_proc_name(int, char *);