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

Move catch to proper place #1133

Merged
merged 2 commits into from
Dec 20, 2024
Merged

Conversation

cstamas
Copy link
Contributor

@cstamas cstamas commented Dec 16, 2024

The now deprecated method behaves re CTRL+C but the new method does not.

continue;
} else {
if (config.cancellableFirstPrompt()) {
try {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to prefer the inner loop rather than the outer scope ? just wondering...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make any difference? Loop with be broken anyway. Also, this way "catch is closer to the source", no?

@gnodet gnodet added this to the 3.28.1 milestone Dec 18, 2024
@mattirn mattirn merged commit 8087827 into jline:master Dec 20, 2024
5 checks passed
@gnodet gnodet added chore bug and removed chore labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants