diff options
author | mattn <mattn.jp@gmail.com> | 2020-01-14 18:26:58 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-14 18:26:58 +0900 |
commit | e972aa09aa158189c36913b62a4344cb3ca78c76 (patch) | |
tree | 758f9f246edcd2f472f42786ff8b7ee09bf1bfa7 /autoload | |
parent | 0925277597e5db0e4b601aecc290b79db239b174 (diff) | |
parent | 4d00bdb4b7e60e0466d3a6e5791779f8ebe7d8fc (diff) | |
download | vim-sonictemplate-e972aa09aa158189c36913b62a4344cb3ca78c76.tar.gz vim-sonictemplate-e972aa09aa158189c36913b62a4344cb3ca78c76.tar.bz2 vim-sonictemplate-e972aa09aa158189c36913b62a4344cb3ca78c76.zip |
Merge pull request #39 from sgur/fix/error_on_normal
Prefix noautocmd to "normal!" commands which trigger TextChange events.
Diffstat (limited to 'autoload')
-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 c857cc8..8fe6e1c 100644 --- a/autoload/sonictemplate.vim +++ b/autoload/sonictemplate.vim @@ -295,7 +295,7 @@ function! sonictemplate#apply(name, mode, ...) abort let c = join(split(c, "\n"), "") let oldindentexpr = &indentexpr let &indentexpr = '' - silent! exe "normal! a\<c-r>=c\<cr>" + noautocmd silent! exe "normal! a\<c-r>=c\<cr>" let &indentexpr = oldindentexpr return else @@ -373,7 +373,7 @@ function! sonictemplate#postfix() call setline('.', line) let oldindentexpr = &indentexpr let &indentexpr = '' - silent! exe "normal! a\<c-r>=c\<cr>" + noautocmd silent! exe "normal! a\<c-r>=c\<cr>" let &indentexpr = oldindentexpr endif if stridx(c, '{{_cursor_}}') != -1 |