[completion] Fix known_hosts completion for custom port number (#1092)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Handles records like "[20.20.7.168]:9722 ssh-rsa ..." This is a standard format for servers running on custom port according to http://man.openbsd.org/sshd.8#SSH_KNOWN_HOSTS_FILE_FORMAT A hostname or address may optionally be enclosed within ‘[’ and ‘]’ brackets then followed by ‘:’ and a non-standard port number.
authored by Andrey Chernih · committed by Junegunn Choi · parent 0b33dc6 · Browse files · 2 files+2 added−2 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+2 added−2 removed
- other:+2 added−2 removed