widget: Set the ring's in-memory size on terminal reset

(cherry picked from commit 2249f514c877041dd291a717360cd6e2747103f5)

Conflicts:
	src/vte.c