diff options
author | anekos <anekos@snca.net> | 2019-11-14 18:46:36 +0900 |
---|---|---|
committer | anekos <anekos@snca.net> | 2019-11-14 18:46:36 +0900 |
commit | 47c0d77f6cad63ea17b0fa6c87d585768c35cf89 (patch) | |
tree | 18ff51cc726bc25779ef2cb94f7e6c8ede30db52 /autoload/sonictemplate.vim | |
parent | 859adef1e67cc0fb1a99e4e3f3d58360f5464f02 (diff) | |
download | vim-sonictemplate-47c0d77f6cad63ea17b0fa6c87d585768c35cf89.tar.gz vim-sonictemplate-47c0d77f6cad63ea17b0fa6c87d585768c35cf89.tar.bz2 vim-sonictemplate-47c0d77f6cad63ea17b0fa6c87d585768c35cf89.zip |
Avoid updating register
Diffstat (limited to 'autoload/sonictemplate.vim')
-rw-r--r-- | autoload/sonictemplate.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/sonictemplate.vim b/autoload/sonictemplate.vim index b857a25..c42e4d3 100644 --- a/autoload/sonictemplate.vim +++ b/autoload/sonictemplate.vim @@ -285,7 +285,7 @@ function! sonictemplate#apply(name, mode, ...) abort endif silent! %d _ silent! put = c - silent! normal! ggdd + silent! normal! gg"_dd else if c[len(c)-1] == "\n" let c = c[:-2] @@ -314,7 +314,7 @@ function! sonictemplate#apply(name, mode, ...) abort let c = substitute(c, "\t", repeat(' ', shiftwidth()), 'g') endif if line('.') < line('$') - silent! normal! dd + silent! normal! "_dd endif silent! put! =c endif |