mirror of https://github.com/liamg/aminal.git
tidy up
This commit is contained in:
parent
394bc54473
commit
d1669c6ab8
|
@ -109,7 +109,7 @@ func (buffer *Buffer) GetURLAtPosition(col uint16, viewRow uint16) string {
|
||||||
if protocolMode && !(c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z') {
|
if protocolMode && !(c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z') {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
candidate = fmt.Sprintf("%c%s", cell.Rune(), candidate)
|
candidate = fmt.Sprintf("%c%s", c, candidate)
|
||||||
if !protocolMode && c == ':' {
|
if !protocolMode && c == ':' {
|
||||||
protocolMode = strings.Contains(candidate, "://")
|
protocolMode = strings.Contains(candidate, "://")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue