Actions
Bug #3574
closedA "/goto" command misbehaves when located inside an "IF" within an "IF" and used in a dialog.
Start date:
07/11/2017
Due date:
% Done:
0%
Estimated time:
Operative System:
All
Regression:
No
Description
Please see example below:
Normal condition:
dialog example {
title "Example"
size -1 -1 295 190
edit "", 4, 10 10 276 121, left, multi, vsbar
button "Done", 3, 110 150 70 30, cancel
}
alias examp {
dialog -m example example
:next
did -i example 4 1 first
did -i example 4 2 second
did -i example 4 3 third
did -i example 4 4 fourth
:end
}
run /examp to check.
Abnormal behavior:
dialog example {
title "Example"
size -1 -1 295 190
edit "", 4, 10 10 276 121, left, multi, vsbar
button "Done", 3, 110 150 70 30, cancel
}
alias examp {
dialog -m example example
if ($me != acronix) {
if ($me != acronix) { goto next }
}
echo -a the condition is false (or is it?)
:next
did -i example 4 1 first
did -i example 4 2 second
did -i example 4 3 third
did -i example 4 4 fourth
:end
}
run /examp to see.
Updated by Acronix Anagami over 7 years ago
I am not sure though if this only applies to dialogs. This might be a general bug of using /goto inside an "if" within an "if".
Updated by Per Amundsen over 7 years ago
- Status changed from New to Assigned
Yeah goto is not well supported in adiirc, I added a hack which seems to work, but might break other stuff, we'll see in next beta.
(it's not related to dialogs)
Updated by Acronix Anagami over 7 years ago
Yes it did. Working normally now. Thank you.
Actions