Minor refactoring

This commit is contained in:
Strahinja Val Markovic 2014-10-29 10:02:41 -07:00
parent 79a3f33334
commit fe24f02005

View File

@ -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