]> git.rmz.io Git - dotfiles.git/blobdiff - vim/ycm_extra_conf.py
vim: highlight non-breakable-spaces
[dotfiles.git] / vim / ycm_extra_conf.py
index 190cabd1908edb2ee78609ac9ad6875193b99430..f19fa08c956b37a69a4952f17d97b0c10961f395 100644 (file)
@@ -91,7 +91,7 @@ def find_nearest_compilation_database(root='.'):
     elif len(dirs) > 1:
         logging.info("Multiple compilation databases found!")
         logging.info(dirs)
     elif len(dirs) > 1:
         logging.info("Multiple compilation databases found!")
         logging.info(dirs)
-        dirs.sort(key=lambda x: os.stat(x).st_mtime)
+        dirs.sort(key=lambda x: os.stat(x).st_mtime, reverse=True)
         logging.info("Selecting newest: %s" % (dirs[0]))
         return dirs[0]
 
         logging.info("Selecting newest: %s" % (dirs[0]))
         return dirs[0]