This happens for me when editing the commit message in ed, the editor which Fossil chooses as the default one on Linux.

w
218
q
fossil: editor aborted