Fix #46: Add space character after content proposal completion

A space character is now added after a content proposal is accepted if the
cursor is at the end of the document. Completing a proposal when there is
trailing text does not add the extra space.