diff options
author | mattn <mattn.jp@gmail.com> | 2011-10-27 19:32:08 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2011-10-27 19:32:08 +0900 |
commit | 7ad38406c40c0bac1000988acc73d6cd57919603 (patch) | |
tree | bc7153d5afe461c9f8e2adce9ab94491b0c88313 /template | |
parent | b90f5fc03f8e4a10db9e7dedc7c0544eb72939db (diff) | |
download | vim-sonictemplate-7ad38406c40c0bac1000988acc73d6cd57919603.tar.gz vim-sonictemplate-7ad38406c40c0bac1000988acc73d6cd57919603.tar.bz2 vim-sonictemplate-7ad38406c40c0bac1000988acc73d6cd57919603.zip |
add recover.go
Diffstat (limited to 'template')
-rw-r--r-- | template/recover.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/template/recover.go b/template/recover.go new file mode 100644 index 0000000..9e024f4 --- /dev/null +++ b/template/recover.go @@ -0,0 +1,5 @@ +defer func() {
+ if recover() != nil {
+ {{_cursor_}}
+ }
+}()
|