mirror of
https://github.com/mhinz/neovim-remote
synced 2024-11-11 13:10:34 +00:00
--serverlist: don't print empty lines
This commit is contained in:
parent
af4103a16a
commit
fa9ecbcc71
@ -314,7 +314,8 @@ def print_sockaddrs():
|
||||
for conn in proc.connections('inet4'):
|
||||
sockaddrs.insert(0, ':'.join(map(str, conn.laddr)))
|
||||
for conn in proc.connections('unix'):
|
||||
sockaddrs.insert(0, conn.laddr)
|
||||
if conn.laddr:
|
||||
sockaddrs.insert(0, conn.laddr)
|
||||
|
||||
for addr in sorted(sockaddrs):
|
||||
print(addr)
|
||||
|
Loading…
Reference in New Issue
Block a user