- Improved indent_snippet().

This commit is contained in:
Shougo Matsushita 2012-10-31 11:10:56 +09:00
parent 558883734d
commit 2d5fccac52
2 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,7 @@
"============================================================================= "=============================================================================
" FILE: neosnippet.vim " FILE: neosnippet.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com> " AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
" Last Modified: 30 Oct 2012. " Last Modified: 31 Oct 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
@ -582,9 +582,9 @@ function! neosnippet#expand(cur_text, col, trigger_name)"{{{
call append('.', snippet_lines[1:]) call append('.', snippet_lines[1:])
endif endif
call s:indent_snippet( if begin_line != end_line || snippet.options.indent
\ ((begin_line != end_line || snippet.options.indent) ? call s:indent_snippet(begin_line, end_line)
\ begin_line : begin_line + 1), end_line) endif
let begin_patterns = (begin_line > 1) ? let begin_patterns = (begin_line > 1) ?
\ [getline(begin_line - 1)] : [] \ [getline(begin_line - 1)] : []

View File

@ -617,6 +617,9 @@ Note: But you must unmap in select mode mappings manually.
============================================================================== ==============================================================================
CHANGELOG *neosnippet-changelog* CHANGELOG *neosnippet-changelog*
2012-10-31
- Improved indent_snippet().
2012-10-30 2012-10-30
- Implemented commented placeholder. - Implemented commented placeholder.
- Improved python snippets. - Improved python snippets.