# HG changeset patch # User Ludovic Chabant # Date 1552285894 25200 # Node ID a77c3eb4ce34242f498cf38ed6b12bc8690eebfa # Parent def58b9d22c6fd1840b6c65edb890ecf1838d5a6 Handle custom project root finder functions returning no value. This is easier on implementers than forcing them to raise an error that starts with "gutentags:". diff -r def58b9d22c6 -r a77c3eb4ce34 autoload/gutentags.vim --- a/autoload/gutentags.vim Tue Dec 18 23:32:20 2018 +0300 +++ b/autoload/gutentags.vim Sun Mar 10 23:31:34 2019 -0700 @@ -272,6 +272,10 @@ if !exists('b:gutentags_root') let b:gutentags_root = gutentags#get_project_root(l:buf_dir) endif + if !len(b:gutentags_root) + call gutentags#trace("no valid project root.. no gutentags support.") + return + endif if filereadable(b:gutentags_root . '/.notags') call gutentags#trace("'.notags' file found... no gutentags support.") return