Skip to content

fix(plugin): preserve template last lines when loading into buffers#163

Open
Konfekt wants to merge 1 commit intoaperezdc:masterfrom
Konfekt:delete-fix
Open

fix(plugin): preserve template last lines when loading into buffers#163
Konfekt wants to merge 1 commit intoaperezdc:masterfrom
Konfekt:delete-fix

Conversation

@Konfekt
Copy link
Contributor

@Konfekt Konfekt commented Mar 16, 2026

Fixes #115 ; @aperezdc please pardon not waiting for @muff1nman 's feedback

Prevent template loading from dropping trailing lines or adding an extra blank line in empty buffers and foldexpr setups.

Load templates with readfile() and append(), keep empty-buffer handling explicit, and allow empty substitutions with the substitute e flag.

Prevent template loading from dropping trailing lines or adding an
extra blank line in empty buffers and foldexpr setups.

Load templates with readfile() and append(), keep empty-buffer handling
explicit, and allow empty substitutions with the substitute e flag.n
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.

comments swallowed when expanding template

1 participant