Smattr / clink

a modern re-implementation of Cscope
The Unlicense
38 stars 2 forks source link

lack of context in clink-repl #207

Closed Smattr closed 1 year ago

Smattr commented 1 year ago

When running Clink with lazy syntax highlighting, jumping into Vim through a result, and then using the Cscope bridge to jump to another result from there, the results pane is frequently missing content of the target line(s). What’s happening here is that clink-repl is asked to lookup something that returns results for which Clink has not yet highlighted the source file(s). We should detect this situation (null context data) and just read the file content on-demand in clink-repl.