mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Fix name matching for ssh-dialog, fix bug 80.
This commit is contained in:
parent
5d5b4aac9f
commit
5f33d506b9
1 changed files with 6 additions and 5 deletions
|
@ -154,14 +154,15 @@ static char ** get_ssh ( unsigned int *length )
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( stop = start; isalnum ( buffer[stop] ) ||
|
for ( stop = start; !isspace(buffer[stop]) ; stop++ ) {
|
||||||
buffer[stop] == '_' ||
|
// We do not want to show wildcard entries, as you cannot ssh to them.
|
||||||
buffer[stop] == '.'; stop++ ) {
|
if ( buffer[stop] == '?' || buffer[stop] == '*' ) {
|
||||||
;
|
stop = start;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int found = 0;
|
int found = 0;
|
||||||
|
|
||||||
if ( start == stop ) {
|
if ( start == stop ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue