Project

General

Profile

Actions

Bug #3574

closed

A "/goto" command misbehaves when located inside an "IF" within an "IF" and used in a dialog.

Added by Acronix Anagami over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
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.

Actions #1

Updated by Acronix Anagami over 6 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".

Actions #2

Updated by Per Amundsen over 6 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)

Actions #3

Updated by Per Amundsen over 6 years ago

Did the hack work?

Actions #4

Updated by Acronix Anagami over 6 years ago

Yes it did. Working normally now. Thank you.

Actions #5

Updated by Per Amundsen over 6 years ago

  • Status changed from Assigned to Resolved

Excellent.

Actions #6

Updated by Per Amundsen over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF