Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/beatrohrer/iTerm2
Browse files Browse the repository at this point in the history
  • Loading branch information
gnachman committed Jul 24, 2015
2 parents b64f200 + b29dd42 commit 2ebc79e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sources/iTermRule.m
Expand Up @@ -40,7 +40,10 @@ + (instancetype)ruleWithString:(NSString *)string {
colon = NSNotFound;
} else if (colon != NSNotFound) {
// user@host:path
hostname = [string substringWithRange:NSMakeRange(atSign + 1, colon - atSign)];
hostname = [string substringWithRange:NSMakeRange(atSign + 1, colon - atSign - 1)];
} else if (colon == NSNotFound) {
// user@host
hostname = [string substringFromIndex:atSign + 1];
}
}
if (colon != NSNotFound) {
Expand Down

0 comments on commit 2ebc79e

Please sign in to comment.