Only use first line of primary selection when populating FindInFiles bar

For #8211