From fe24f02005c60698212a5d7f8fc6ef8d99f158d7 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Wed, 29 Oct 2014 10:02:41 -0700 Subject: [PATCH] Minor refactoring --- python/ycm/diagnostic_interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ycm/diagnostic_interface.py b/python/ycm/diagnostic_interface.py index 29092647..79b9dcb3 100644 --- a/python/ycm/diagnostic_interface.py +++ b/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