mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-13 20:14:12 +02:00
Fix handling of :doc: in CLI help output
This commit is contained in:
@@ -1084,6 +1084,8 @@ def docs_url(which: str = '', local_docs_root: Optional[str] = '') -> str:
|
||||
if frag.startswith('ref='):
|
||||
ref = frag[4:]
|
||||
which = resolve_ref(ref, lambda x: x)
|
||||
if which.startswith('https://') or which.startswith('http://'):
|
||||
return which
|
||||
base, frag = which.partition('#')[::2]
|
||||
base = base.strip('/')
|
||||
if ld:
|
||||
|
||||
Reference in New Issue
Block a user