From 2a2be48c3bbf1b5ac67ab97d946ac59bc9336754 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Thu, 1 Nov 2012 11:29:37 +0900 Subject: [PATCH] - Fixed convert description. --- autoload/neosnippet.vim | 12 +++++------- doc/neosnippet.txt | 1 + 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/autoload/neosnippet.vim b/autoload/neosnippet.vim index 27ce49e..cd77e7c 100644 --- a/autoload/neosnippet.vim +++ b/autoload/neosnippet.vim @@ -353,13 +353,11 @@ function! s:parse_snippets_file(snippets, snippets_file)"{{{ " Fall back to using the name and description (abbr) combined. " SnipMate snippets may have duplicate names, but different " descriptions (abbrs). - if has_key(dup_check, snippet_dict.name) - let description = matchstr(line, '^snippet\s\+\zs.*$') - if description !=# snippet_dict.name - " Convert description. - let snippet_dict.name = - \ substitute(description, '\W\+', '_', 'g') - endif + let description = matchstr(line, '^snippet\s\+\zs.*$') + if description !=# snippet_dict.name + " Convert description. + let snippet_dict.name = + \ substitute(description, '\W\+', '_', 'g') endif " Collect the description (abbr) of the snippet, if set on snippet line. diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index 5035187..1fd4719 100644 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -640,6 +640,7 @@ CHANGELOG *neosnippet-changelog* 2012-11-01 - Fixed snippet mirror behavior. - Fixed substitute of target. +- Fixed convert description. 2012-10-31 - Improved indent_snippet().