fmbt-editor: fix handling preview directives

Fixes an issue when a directive (such as # preview-show-vars) is
the last line of the editor without line break.