After a replace all of a highlighted name (eg typename in c/c++) some of the 
occurrences of the replaced name are not highlighted.

Theorum:

I think the mechanism is:

1. do the replace, the replacements are not highlighted since the new name is 
not yet parsed by ctags as a typename.

2. a few 100 ms later the parser runs and the list of names is updated

3. but it seems only the part of the file from the first visible line to the 
end is invalidated since occurrences of the name before that position in the 
file are not highlighted, until something happens to invalidate that part of 
the file, then they are highlighted

Solution:

Probably the whole file should be invalidated after any parser update that 
changes the name lists, since its not known what part of the file this will 
impact.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1020

Reply via email to