@elextr commented on this pull request.
@@ -746,9 +847,12 @@ static gint sort_found_tags(gconstpointer a, gconstpointer b, gpointer user_data
const TMTag *t1 = *((TMTag **) a); const TMTag *t2 = *((TMTag **) b);
- /* sort local vars first (with highest line number first), followed - * by tags from current file, followed by workspace tags, followed by - * global tags */ + /* sort local vars first (with highest line number first),
Currently it's those before the cursor.
Ok, its fine for C, if locals only and sorting only its ok for C++ so long as no other declarations (eg members) that happen after the cursor are not excluded from the autocomplete (even if they get sorted later).