Skip to content

Getting frivolous infinite loop messages #88

Description

@iamkroot

Simply typing $ in the open/create file input field gives the infinite loop message.

Seems like it happens because transform_aliases is being called after every key press (to show the expanded path in the status bar). So as we start typing an alias with a $, this triggers the warning.

has_unescaped_dollar should check that there are other chars after the $ for it to count as an alias.

def has_unescaped_dollar(string):
start = 0
while True:
index = string.find("$", start)
if index < 0:
return False
elif string[index - 1] == "\\":
start = index + 1
else:
return True

Also, a separate bug- index == 0 is not handled properly in this

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions