{"record":{"id":"7312bb7c44b24f58","repo":"junegunn/fzf","slug":"inline-border-is-only-supported-for-header-borde","errorCode":null,"errorMessage":"inline border is only supported for --header-border, --header-lines-border, and --footer-border","messagePattern":"inline border is only supported for --header-border, --header-lines-border, and --footer-border","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/options.go","lineNumber":3665,"sourceCode":"\t\t\t\treturn errors.New(\"adaptive height is not compatible with top/bottom percent margin\")\n\t\t\t}\n\t\t}\n\t\tfor _, s := range []sizeSpec{opts.Padding[0], opts.Padding[2]} {\n\t\t\tif s.percent {\n\t\t\t\treturn errors.New(\"adaptive height is not compatible with top/bottom percent padding\")\n\t\t\t}\n\t\t}\n\t}\n\n\tif opts.Theme.Nth.IsColorDefined() {\n\t\treturn errors.New(\"only ANSI attributes are allowed for 'nth' (regular, bold, underline, reverse, dim, italic, strikethrough)\")\n\t}\n\n\tif opts.BorderShape == tui.BorderInline ||\n\t\topts.ListBorderShape == tui.BorderInline ||\n\t\topts.InputBorderShape == tui.BorderInline ||\n\t\topts.Preview.border == tui.BorderInline {\n\t\treturn errors.New(\"inline border is only supported for --header-border, --header-lines-border, and --footer-border\")\n\t}\n\tif opts.HeaderBorderShape == tui.BorderInline &&\n\t\topts.HeaderLinesShape != tui.BorderInline &&\n\t\topts.HeaderLinesShape != tui.BorderUndefined &&\n\t\topts.HeaderLinesShape != tui.BorderNone {\n\t\treturn errors.New(\"--header-border=inline requires --header-lines-border to be inline or unset\")\n\t}\n\n\treturn nil\n}\n\nfunc noSeparatorLine(style infoStyle, separator bool) bool {\n\tswitch style {\n\tcase infoInline:\n\t\treturn true\n\tcase infoHidden, infoInlineRight:\n\t\treturn !separator\n\t}","sourceCodeStart":3647,"sourceCodeEnd":3683,"githubUrl":"https://github.com/junegunn/fzf/blob/bd4efa277b49ef34ca4025bff9b1a288e1980eff/src/options.go#L3647-L3683","documentation":"The 'inline' border style draws a border segment inside the header/footer area and is only meaningful there. Applying BorderInline to the outer (--border), list (--list-border), input (--input-border), or preview (--preview-border) border is rejected at options.go:3665.","triggerScenarios":"Passing --border=inline, --list-border=inline, --input-border=inline, or --preview-border=inline. Any of those four shapes equal to tui.BorderInline triggers the error.","commonSituations":"New border-shape values being applied globally via a shared variable in scripts; users experimenting with inline after seeing it in header examples; configs generated for one fzf version used on another where inline was added.","solutions":["Use inline only with --header-border, --header-lines-border, or --footer-border","For the outer/list/input/preview borders use rounded, sharp, double, bold, block, or none","Check fzf --help for which shapes each border option accepts"],"exampleFix":"# before\nfzf --preview-border=inline --preview 'cat {}'\n# after\nfzf --preview-border=rounded --preview 'cat {}'","handlingStrategy":"validation","validationCode":"// Shell: inline only for header/footer borders\ncase \"$border\" in inline) border='header' ;; esac  # or reject\nexec fzf --border=\"$border\"","typeGuard":"func inlineAllowed(opt string) bool {\n    switch opt {\n    case \"--header-border\", \"--header-lines-border\", \"--footer-border\":\n        return true\n    }\n    return false\n}","tryCatchPattern":null,"preventionTips":["Remember inline is a header/footer-only shape","Use rounded/sharp/double/bold/block/none for outer, list, input, and preview borders","Validate border values per-option in config loaders"],"tags":["fzf","cli","border","validation"],"backgroundTag":null,"analyzedSha":"bd4efa277b49ef34ca4025bff9b1a288e1980eff","analyzedAt":"2026-08-15T06:11:46.983Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}