Skip to content

Fix extra blank line on end of file#24

Open
haemka wants to merge 1 commit into
tibabit:masterfrom
haemka:master
Open

Fix extra blank line on end of file#24
haemka wants to merge 1 commit into
tibabit:masterfrom
haemka:master

Conversation

@haemka
Copy link
Copy Markdown

@haemka haemka commented Sep 29, 2022

Fixes #19

Since nobody issued a PR for this before...

Adopted the code from #19 (comment). Credits go to @Licaifei.

Comment thread plugin/templates.vim
call <SID>ExpandTemplate('CAMEL_CLASS', l:camelclass)
call <SID>ExpandTemplate('SNAKE_CLASS', l:snakeclass)

execute line('$') . "d _"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be moved outside expand function once all templates have been expanded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blank line added to end of template

2 participants