list dialog returns wrong values when using the search feature
The list dialog returns wrong values when using the search feature. I am using Zenity 3.99.1 on Fedora 38.
For example, consider the following:
zenity --list --column="A" "entry 1" "entry 2"
this will create the following list dialog:
now, if we type something a search bar appears and the dialog filters the entries to show only the matching ones. For example, if we type "2" only the "entry 2" will be shown:
However, when we press OK the result is "entry 1". It seems that the dialog is obtaining the position of the selected entry and using that to return the value from the unfiltered list.