Clicking bit in bitfield with a non-empty input field gives 'unknown function or variable'

Issue #987 closed
DWelting created an issue

If a number/variable/function is present in the input field, clicking a bit in the bit-field adds the current selected bits in hex format, without erasing the current input value. This gives the 'unknown function or variable' error.

How to reproduce:

  • Input any number/variable/function in the input field (hex or otherwise), for example '6'
  • This displays the correct 1st and 2nd bit in the bit-field.
  • Click a bit in the bit-field, for example the 4th bit.
  • The expected result is to get the value of 22 (or hex 0x16), but it gives 60x16 in the input field.
  • Pressing enter gives the error 'unknown function or variable'.

I am using the git version, Qt 5.14.2. But I also noticed it with the Manjaro repo version 0.12.0-2.

Comments (4)

  1. Helder Correia repo owner

    The bitfield widget does not clear the input edit by design. Instead, it inserts the correct (0x16) value wrapped in a text selection, and that’s the intented behavior.

  2. Log in to comment