Author Topic: Problem in listproc.e w/ NOSAVE_LF lines  (Read 3011 times)

hs2

  • Senior Community Member
  • Posts: 2744
  • Hero Points: 288
Problem in listproc.e w/ NOSAVE_LF lines
« on: September 21, 2006, 09:20:58 pm »
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:
Code: [Select]
         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:
Code: [Select]
         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