added support for one line snippets with cursor