From 612ab6e43a263316f1339d7f810c7a2599ebf203 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Wed, 29 May 2013 19:05:02 -0700 Subject: [PATCH] Fixing possible issue with `remove()` on StringVec There is not remove() on StringVec so we need to make sure we are always handling a list. Fixes #347. --- cpp/ycm/.ycm_extra_conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/ycm/.ycm_extra_conf.py b/cpp/ycm/.ycm_extra_conf.py index 32d34411..e2ec67b8 100644 --- a/cpp/ycm/.ycm_extra_conf.py +++ b/cpp/ycm/.ycm_extra_conf.py @@ -101,7 +101,7 @@ def DirectoryOfThisScript(): def MakeRelativePathsInFlagsAbsolute( flags, working_directory ): if not working_directory: - return flags + return list( flags ) new_flags = [] make_next_absolute = False path_flags = [ '-isystem', '-I', '-iquote', '--sysroot=' ]