diff options
author | mattn <mattn.jp@gmail.com> | 2019-11-14 19:01:33 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-14 19:01:33 +0900 |
commit | c512546f04de8a185d40292dd0860d81d1896130 (patch) | |
tree | 18ff51cc726bc25779ef2cb94f7e6c8ede30db52 /autoload/sonictemplate.vim | |
parent | 859adef1e67cc0fb1a99e4e3f3d58360f5464f02 (diff) | |
parent | 47c0d77f6cad63ea17b0fa6c87d585768c35cf89 (diff) | |
download | vim-sonictemplate-c512546f04de8a185d40292dd0860d81d1896130.tar.gz vim-sonictemplate-c512546f04de8a185d40292dd0860d81d1896130.tar.bz2 vim-sonictemplate-c512546f04de8a185d40292dd0860d81d1896130.zip |
Merge pull request #37 from anekos/fix/dont-kill-my-register
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 |