making it so that hitting enter on an empty context cleanly removes that context