ahkpp icon indicating copy to clipboard operation
ahkpp copied to clipboard

inconsistency with tab autocomplete between while and if statements

Open rsa17826 opened this issue 7 months ago • 2 comments

For troubleshooting assistance, refer to the troubleshooting guide

Description

A clear and concise description of what the bug is.

the autocomplete adds () to while statements but not if statements

Reproduction steps

Steps to reproduce the behavior:

type while then press tab then go to a new line and type if then press tab

Expected behavior

A clear and concise description of what you expected to happen. the while should not add ()

rsa17826 avatar May 02 '25 01:05 rsa17826

@rsa17826 is this for AHK v1, AHK v2, or both? I can double-check in a bit, just want to make sure I'm understanding the scope of the issue correctly when I try to repro :)

mark-wiemer avatar May 11 '25 18:05 mark-wiemer

this was originally only tested for ahkv2, but for v1 it is backwards, with the if having () and the while not, though the while has a comma in v1:

If (expression)
While, Expression

rsa17826 avatar May 12 '25 22:05 rsa17826