Hello Slickteam,
when a 'ruler' line is displayed (a NOSAVE_LF line) I've noticed that my beloved
list-tags macro gets confused when jumping to the selected procedure, if it's below the ruler line.
I know it's 'legacy' stuff - but I still make heavy use of it.
For quite a long time it was the better way for me since I customized it a bit and patched the sellist modules to support type-ahead find etc.
Ok - now the tree widgets support type-ahead find too, but I need my time to get used to it...
I quickly tried the
Defs toolbar and - no surprise - it's working fine.
So the problem was easy to find.
listproc.e uses this code seq. to jump to the selected tag / local / statement:
goto_line(start_line_no); // cm.line_no in list_locals()
_nrseek(start_seekpos); // cm.seekpos in list_locals()
But it should also take care about 'real' line number / seek pos as shown in the snippet (derived from goto_context_tag()) below:
p_RLine= start_line_no; // cm.line_no in list_locals()
_GoToROffset(start_seekpos); // cm.seekpos in list_locals()
Now my favourite macros are working great again
@see listproc.e [Revision: 1.22]: list_tags(), list_locals(), list_statements()
HS2