- Fixed for expandtab.

This commit is contained in:
Shougo Matsushita 2012-03-19 00:39:35 +09:00
parent 60969f5ac0
commit f741685f9e
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
"============================================================================= "=============================================================================
" FILE: snippets_complete.vim " FILE: snippets_complete.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com> " AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
" Last Modified: 17 Mar 2012. " Last Modified: 19 Mar 2012.
" License: MIT license {{{ " License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining " Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the " a copy of this software and associated documentation files (the
@ -615,7 +615,7 @@ function! s:indent_snippet(begin, end)"{{{
if &l:expandtab if &l:expandtab
" Expand tab. " Expand tab.
cal setline('.', substitute(getline('.'), cal setline('.', substitute(getline('.'),
\ '^\t\+', repeat(' ', &shiftwidth * \ '^\t\+', base_indent . repeat(' ', &shiftwidth *
\ len(matchstr(getline('.'), '^\t\+'))), '')) \ len(matchstr(getline('.'), '^\t\+'))), ''))
elseif line_nr != a:begin elseif line_nr != a:begin
call setline('.', base_indent . getline('.')) call setline('.', base_indent . getline('.'))

View File

@ -295,6 +295,9 @@ snippet *neocomplcache-snippets-complete-unite-action-snippet*
============================================================================== ==============================================================================
CHANGELOG *neocomplcache-snippets-complete-changelog* CHANGELOG *neocomplcache-snippets-complete-changelog*
2012-03-18
- Fixed for expandtab.
2012-03-17 2012-03-17
- Fixed for echodoc. - Fixed for echodoc.