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
Simply typing
$in the open/create file input field gives the infinite loop message.Seems like it happens because
transform_aliasesis 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_dollarshould check that there are other chars after the$for it to count as an alias.FileManager/libs/sublimefunctions.py
Lines 103 to 112 in 40c4523
Also, a separate bug-
index == 0is not handled properly in this