1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-03 04:23:42 -05:00

[SSH] Ignore comments in the Host: line.

Fixes #178
This commit is contained in:
Dave Davenport 2015-06-14 14:37:53 +02:00
parent 306b8dcf93
commit 6c9a493b56

View file

@ -224,6 +224,11 @@ static char ** get_ssh ( unsigned int *length )
continue;
}
// If comment, skip from now on.
if ( *token == '#' ) {
break;
}
// Is this host name already in the history file?
// This is a nice little penalty, but doable? time will tell.
// given num_favorites is max 25.