From 35a112de9042d839a9bc034af5e0a1bad3bea40b Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Fri, 23 Mar 2012 12:14:13 +0900 Subject: [PATCH] - Fixed substitute pattern bug. --- autoload/neocomplcache/sources/snippets_complete.vim | 4 ++-- doc/neocomplcache-snippets-complete.txt | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/autoload/neocomplcache/sources/snippets_complete.vim b/autoload/neocomplcache/sources/snippets_complete.vim index 5365b51..fff6185 100644 --- a/autoload/neocomplcache/sources/snippets_complete.vim +++ b/autoload/neocomplcache/sources/snippets_complete.vim @@ -1,7 +1,7 @@ "============================================================================= " FILE: snippets_complete.vim " AUTHOR: Shougo Matsushita -" Last Modified: 19 Mar 2012. +" Last Modified: 23 Mar 2012. " License: MIT license {{{ " Permission is hereby granted, free of charge, to any person obtaining " a copy of this software and associated documentation files (the @@ -796,7 +796,7 @@ function! s:search_sync_placeholder(start, end, number)"{{{ \ '\\d\\+', a:number, '') for line in filter(range(a:start, a:end), \ 'getline(v:val) =~ pattern') - return 1 + return a:number endfor return 0 diff --git a/doc/neocomplcache-snippets-complete.txt b/doc/neocomplcache-snippets-complete.txt index 8a25cc7..74632cb 100644 --- a/doc/neocomplcache-snippets-complete.txt +++ b/doc/neocomplcache-snippets-complete.txt @@ -295,6 +295,9 @@ snippet *neocomplcache-snippets-complete-unite-action-snippet* ============================================================================== CHANGELOG *neocomplcache-snippets-complete-changelog* +2012-03-23 +- Fixed substitute pattern bug. + 2012-03-19 - Fixed substitute marker.