-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
readline: remove max limit of crlfDelay #13497
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
Changes from 1 commit
e1038fa
056999e
b97c9c4
f786414
43b78ec
d7c1873
d90647d
3d9c7a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -124,7 +124,8 @@ function Interface(input, output, completer, terminal) { | |
| this.input = input; | ||
| this.historySize = historySize; | ||
| this.removeHistoryDuplicates = !!removeHistoryDuplicates; | ||
| this.crlfDelay = Math.max(kMincrlfDelay, crlfDelay >>> 0); | ||
| this.crlfDelay = crlfDelay === Infinity ? | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, could just collapse to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @refack This is because
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. being an integer might have been more important at some point in the past, but if you look at the current uses:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I fixed this with
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @refack Could you help me to start CI ? |
||
| Infinity : Math.max(kMincrlfDelay, crlfDelay >>> 0); | ||
|
|
||
| // Check arity, 2 - for async, 1 for sync | ||
| if (typeof completer === 'function') { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Infinity >>> 0is 0 😢There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you fixed this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I fixed it