diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-21 23:11:46 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-21 23:11:46 +0900 |
commit | e746cdf5c5dc8d3849b7e2517c4a24e57d931dd3 (patch) | |
tree | 8b6b1bb9063436398d0aa541124f27041f95445e /autoload | |
parent | c512546f04de8a185d40292dd0860d81d1896130 (diff) | |
download | vim-sonictemplate-e746cdf5c5dc8d3849b7e2517c4a24e57d931dd3.tar.gz vim-sonictemplate-e746cdf5c5dc8d3849b7e2517c4a24e57d931dd3.tar.bz2 vim-sonictemplate-e746cdf5c5dc8d3849b7e2517c4a24e57d931dd3.zip |
Strictly
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/sonictemplate.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/sonictemplate.vim b/autoload/sonictemplate.vim index c42e4d3..c857cc8 100644 --- a/autoload/sonictemplate.vim +++ b/autoload/sonictemplate.vim @@ -68,7 +68,7 @@ function! s:get_candidate(fts, lead) endif try let ft = s:get_filetype() - let cxt = sonictemplate#lang#{ft!=""?ft:"_"}#guess() + let cxt = sonictemplate#lang#{ft !=# '' ? ft : '_'}#guess() if has_key(cxt, 'prefix') let prefix = cxt['prefix'] call s:setopt('prefix', cxt['prefix']) |