aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2011-10-27 19:32:08 +0900
committermattn <mattn.jp@gmail.com>2011-10-27 19:32:08 +0900
commit7ad38406c40c0bac1000988acc73d6cd57919603 (patch)
treebc7153d5afe461c9f8e2adce9ab94491b0c88313 /template
parentb90f5fc03f8e4a10db9e7dedc7c0544eb72939db (diff)
downloadvim-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.go5
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_}}
+ }
+}()