Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] with unreachable areas #10

Open
CoffeeChaton opened this issue Apr 2, 2023 · 0 comments
Open

[bug] with unreachable areas #10

CoffeeChaton opened this issue Apr 2, 2023 · 0 comments

Comments

@CoffeeChaton
Copy link

gosub, TypingInRenameSimple
return
sleep, 500
LV_GetText(OutputVar,A_EventInfo,2)
SplitPath, OutputVar, , , OutExtension, OutNameNoExt
if (OutNameNoExt) {
Postmessage,0xB1, 0, % StrLen(OutNameNoExt), Edit2
} else {
Postmessage,0xB1, 1, % StrLen(OutExtension)+1, Edit2
}

at main - branch

ahk_explorer/ahk_explorer.ahk

Lines 3232 to 3243 in d0dbc20

gosub, TypingInRenameSimple
return
sleep, 500
LV_GetText(OutputVar,A_EventInfo,2)
SplitPath, OutputVar, , , OutExtension, OutNameNoExt
if (OutNameNoExt) {
Postmessage,0xB1, 0, % StrLen(OutNameNoExt), Edit2
} else {
Postmessage,0xB1, 1, % StrLen(OutExtension)+1, Edit2
}

at main2 - branch

This looks like a refactoring error.

minimal example

~F10::
{
    gosub, TypingInRenameSimple

    return

    MsgBox, % "unreachable area"
}
return

TypingInRenameSimple:
    MsgBox, % "i am in TypingInRenameSimple-label"
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant