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

Enter handler inserts } at unexpected position #118

Closed
jansorg opened this issue Nov 17, 2022 · 1 comment
Closed

Enter handler inserts } at unexpected position #118

jansorg opened this issue Nov 17, 2022 · 1 comment

Comments

@jansorg
Copy link
Contributor

jansorg commented Nov 17, 2022

I found a strange issue, might be a bug. Here is the source code of the problematic shell script:

#!/bin/bash
SyncLocateFiles(){
    days=$(( 1 - 1 ))
}

image
Looks totally normal, right?
If I press the Enter key on my keyboard at the end of the line with the function name, where the blue cursor is in the screenshot, it will look like this:
image
I've tested different code modules and it seems that this problem only occurs when using double parentheses for arithmetic operations.

Originally posted by @mylovesaber in #116 (comment)

@jansorg jansorg changed the title Brace completion not working Enter handler inserts } at unexpected position Nov 18, 2022
@jansorg
Copy link
Contributor Author

jansorg commented Nov 18, 2022

This is fixed by 3.0.3, which is now available.

@jansorg jansorg closed this as completed Nov 18, 2022
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