Author Topic: mfdiff and tree control bug  (Read 1788 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
mfdiff and tree control bug
« on: September 14, 2017, 05:29:49 PM »
In DIFFMF I found it supports Ctrl+H to hide the current file --- I really nice hidden feature!

But, hit Ctrl+H two times and the other tree is completely hidden - very bad.
The problem seems to be that _TreeGetSelectionIndices() returns the same index as the one previously hidden. I think that the tree is left with the selection on the item just hidden.

So, do a MFDIFF.
Select a file on the left.
Ctrl+H -- its hidden.
Ctrl+H again: The entire right tree is hidden.

On the first Ctrl+H, _TreeGetSelectionIndices() returns  "x"
On the second Ctrl+H, _TreeGetSelectionIndices() returns  "x" again
This confuses HideLinesInBothTrees() because _TreeCurLinNumber() returns 0, but the current line number is queried from the left tree but only set on the right.



Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2899
  • Hero Points: 153
Re: mfdiff and tree control bug
« Reply #1 on: September 14, 2017, 05:41:05 PM »
I'll take a look at this.