Fix #147.  Add support for line completion (basic support for
InsertExpandMode).