-
-
Notifications
You must be signed in to change notification settings - Fork 35k
readline: fixed tab completion issue with undefined columns #2612
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
33787b1
readline: Added failing test for tab completion
mtharrison eeffc20
readline: fixed issue with tab completion
mtharrison a493dab
cpplint: make it possible to run outside git repo
bnoordhuis b3c4cec
build: make .msi install to "nodejs", not "node"
rvagg cdfa271
doc: update AUTHORS list
rvagg 7ee58be
crypto: replace rwlocks with simple mutexes
bnoordhuis 3bc7e58
child_process: use stdio.fd even if it is 0
evanlucas 278a926
src: s/ia32/x86 for process.release.libUrl for win
rvagg b8341e8
deps: float node-gyp v3.0.0
rvagg 154d3f5
build: remote commands on staging in single session
rvagg c7be08c
cluster: allow shared reused dgram sockets
indutny 31450fc
deps: improve ArrayBuffer performance in v8
indutny 22097a2
node-gyp: float 3.0.1, minor fix for download url
rvagg 297b9ae
build: fix v8_enable_handle_zapping override
skomski 8f87169
doc: fix comma splice in Assertion Testing doc
Trott 380a3d8
2015-09-08, Version 4.0.0 (Stable) Release
rvagg f8152df
test: expect error for test_lookup_ipv6_hint on FreeBSD
Trott f442904
doc: describe process API for IPC
sam-github 81a0c0b
win,msi: fix documentation shortcut url
mscdex d2f70fe
doc: use 3rd person singular for consistency
agcolom a6d674d
bindings: close after reading module struct
indutny acb6779
deps: cherry-pick 6da51b4 from v8's upstream
indutny e1fb0e8
doc: use US English for consistency
agcolom a1949e8
test: remove valid hostname check in test-dns.js
Trott 2aed0aa
readline: Added failing test for tab completion
mtharrison e9fd78d
readline: fixed issue with tab completion
mtharrison ac3f7f4
readline: var => const
mtharrison 9831203
Mergefix
mtharrison File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
readline: fixed issue with tab completion
Fixes an issue where tab completion groups aren't shown if the output stream column size is undefined.
- Loading branch information
commit e9fd78d94d7135a1c0565e53141e59bae433ec67
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
While I see that this fixes the issue, I'm not sure exactly why it does so. With
self.columnsbeingundefined, the division should result inNaN. Care to explain why it results inInfinity?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.
There's a getter defined for
columnshere: https://github.com/nodejs/node-v0.x-archive/blob/master/lib/readline.js#L165-L170There 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.
Oh, sneaky!