feat: initial commit
This commit is contained in:
commit
a161b86c9a
705 changed files with 288162 additions and 0 deletions
14
vendor/github.com/charmbracelet/x/cellbuf/link.go
generated
vendored
Normal file
14
vendor/github.com/charmbracelet/x/cellbuf/link.go
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package cellbuf
|
||||
|
||||
import (
|
||||
"github.com/charmbracelet/colorprofile"
|
||||
)
|
||||
|
||||
// Convert converts a hyperlink to respect the given color profile.
|
||||
func ConvertLink(h Link, p colorprofile.Profile) Link {
|
||||
if p == colorprofile.NoTTY {
|
||||
return Link{}
|
||||
}
|
||||
|
||||
return h
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue