a minimum functional buffer
fix adding line and support enter