comparison autoload/gutentags/ctags.vim @ 116:be8d47e88ab1

ctags: use empty() instead of comparing with ""
author Ilya Tumaykin <itumaykin@gmail.com>
date Thu, 25 Feb 2016 02:02:03 +0300
parents bc6ef3d0b84f
children df3b0ca48013
comparison
equal deleted inserted replaced
115:bc6ef3d0b84f 116:be8d47e88ab1
62 \":GutentagsUpdate!.") 62 \":GutentagsUpdate!.")
63 return 63 return
64 endif 64 endif
65 endif 65 endif
66 66
67 if g:gutentags_cache_dir == "" 67 if empty(g:gutentags_cache_dir)
68 " If we don't use the cache directory, let's just use the tag filename 68 " If we don't use the cache directory, let's just use the tag filename
69 " as specified by the user, and change the working directory to the 69 " as specified by the user, and change the working directory to the
70 " project root. 70 " project root.
71 " Note that if we don't do this and pass a full path, `ctags` gets 71 " Note that if we don't do this and pass a full path, `ctags` gets
72 " confused if the paths have spaces -- but not if you're *in* the 72 " confused if the paths have spaces -- but not if you're *in* the
162 return g:gutentags_ctags_executable 162 return g:gutentags_ctags_executable
163 endif 163 endif
164 endfunction 164 endfunction
165 165
166 function! s:process_options_file(proj_dir, path) abort 166 function! s:process_options_file(proj_dir, path) abort
167 if g:gutentags_cache_dir == "" 167 if empty(g:gutentags_cache_dir)
168 " If we're not using a cache directory to store tag files, we can 168 " If we're not using a cache directory to store tag files, we can
169 " use the options file straight away. 169 " use the options file straight away.
170 return a:path 170 return a:path
171 endif 171 endif
172 172