Browse Source

Minor refactoring

Strahinja Val Markovic 10 years ago
parent
commit
fe24f02005
1 changed files with 2 additions and 2 deletions
  1. 2 2
      python/ycm/diagnostic_interface.py

+ 2 - 2
python/ycm/diagnostic_interface.py

@@ -165,14 +165,14 @@ def _GetKeptAndNewSigns( placed_signs, buffer_number_to_line_to_diags,
 
 
 def _PlaceNewSigns( kept_signs, new_signs ):
-  placed_signs = kept_signs
+  placed_signs = kept_signs[:]
   for sign in new_signs:
     # Do not set two signs on the same line, it will screw up storing sign
     # locations.
     if sign in placed_signs:
       continue
     vimsupport.PlaceSign( sign.id, sign.line, sign.buffer, sign.is_error )
-    placed_signs += [ sign ]
+    placed_signs.append(sign)
   return placed_signs