From 14c8d14ed2fc9eb727c389532186b531e32b907c Mon Sep 17 00:00:00 2001
From: mattn <mattn.jp@gmail.com>
Date: Thu, 27 Oct 2011 21:36:14 +0900
Subject: fix indent.

---
 plugin/template.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'plugin')

diff --git a/plugin/template.vim b/plugin/template.vim
index 391e17a..75c8ffe 100644
--- a/plugin/template.vim
+++ b/plugin/template.vim
@@ -88,7 +88,7 @@ function! s:Template(name)
         silent! normal dd
       endif
       let c = indent . substitute(c, "\n", "\n".indent, 'g')
-      if &expandtab || indent =~ '^ *$'
+      if len(indent) && (&expandtab || indent =~ '^ \+$')
         let c = substitute(c, "\t", repeat(' ', min([len(indent), &tabstop])), 'g')
       endif
       silent! put! = c
-- 
cgit v1.2.3-54-g00ecf