TotalRegistry icon indicating copy to clipboard operation
TotalRegistry copied to clipboard

Infinite nesting when copy pasting a key into itself

Open mesvam opened this issue 9 months ago • 0 comments

To reproduce

  • Create a key named "test"
  • Select the newly created key and Ctrl+C to copy
  • Keeping the key "test" selected, Ctrl+V to paste
  • Should show the error message "Paste failed (The parameter is incorrect.)"
  • Refresh (F5)

Results

This produces nested keys many layers deep, e.g. \test\test\test\test\test... Attempting to delete the top level key fails ("Failed to delete key (The parameter is incorrect."). The only way to recover is to expand the structure as deep as it will go (hold down right arrow), then delete the deepest key. Then the rest can be removed. While cleanup is possible, it can get quite nasty with a lot of keys.

Expected behavior

To avoid recursion, it should clone the source key first, then copy the clone to the target.

mesvam avatar Mar 19 '25 04:03 mesvam