There are times when I select some text with a mouse, and it highlights all instances of the text as expected, e.g. in this c code, a mouse click selection on r gives:
struct record make_record(int id, char *name)
{
struct record r; <-- Selection
^
r.id = id;
^
r.name = name;
^
return r;
^
}
As expected, but selecting using ^D
or alt+f3
result in selecting all instances of r. I’ve tried to search for what this
behaviour is called but cannot find anything. Any ideas? How would you get the “pre-selected” text to be selected?