Move textbuf in struct