Author Topic: B6: push_ref vs "preview" and "references"  (Read 924 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1825
  • Hero Points: 177
  • Text
B6: push_ref vs "preview" and "references"
« on: October 06, 2014, 04:10:04 pm »

"Preview" and "References" are both docked to the bottom of the main window - two tabs in the same pane.

I've got two headers with a bunch of duplicate #defines I'm trying to resolve.


In H1.h:
#define BLAT 123


In H2.h
#define BLAT 456

Put the cursor on BLAT in H1, and do Ctrl+/ (push-ref).
A "Select Symbol" dialog appears listing BLAT in H1.h and H2.h.

If I select the definition in H1, then the "Preview" tool window is activated.
If I select the definition in H2, then the "References" tool window is activated.

And likewise, If I put the cursor on BLAT in H2, then the activated tool window is reversed.


Seems like, no matter which symbol, Slick oughta activate the same tool window.


Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2786
  • Hero Points: 422
Re: B6: push_ref vs "preview" and "references"
« Reply #1 on: October 06, 2014, 05:08:08 pm »
What are you preview window activation options?  Tools > Options... > Appearance > Preview Tool Window.

If you have the preview tool window docked in the same group as the References tool window *and* you have the Preview Tool Window activation options to allow it to be activated by the References tool window, then you are just setting things up for getting unpredictable results.

jporkkahtc

  • Senior Community Member
  • Posts: 1825
  • Hero Points: 177
  • Text
Re: B6: push_ref vs "preview" and "references"
« Reply #2 on: October 06, 2014, 09:22:44 pm »
PreviewToolWindow options are all OFF.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2786
  • Hero Points: 422
Re: B6: push_ref vs "preview" and "references"
« Reply #3 on: October 07, 2014, 12:11:21 am »
Replicated and fixed.  Thanks for the detailed steps to reproduce.