diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6e92f57 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +tags diff --git a/plugin/ctab.vim b/plugin/ctab.vim index 4b105f6..0726893 100644 --- a/plugin/ctab.vim +++ b/plugin/ctab.vim @@ -221,7 +221,9 @@ if ! exists('g:ctab_disable_checkalign') || g:ctab_disable_checkalign==0 if a:line == line('.') let b:ctab_lastalign=a:line else - unlet b:ctab_lastalign + if exists('b:ctab_lastalign') + unlet b:ctab_lastalign + endif endif set ts=50 set sw=50 @@ -268,7 +270,7 @@ if ! exists('g:ctab_disable_checkalign') || g:ctab_disable_checkalign==0 endif return "\" else - return "\\=".s:SID().'_CheckAlign(line(''.''))'."\\" + return "\\=".s:SID().'_CheckAlign(line(''.''))'."\" endif endfun