fix(float): respect resolved border for titles #338

Merged
barrettruth merged 1 commit from fix/336-main-float-title into main 2026-04-30 20:57:25 +00:00
barrettruth commented 2026-04-30 20:56:11 +00:00

Problem

On main, floating oil windows decide between native border titles and the fallback overlay title window by looking only at config.float.border. When users leave that setting at nil but set Neovim's global winborder, oil opens a real bordered float and still creates the fallback overlay title window, so the title overlaps the directory listing.

Solution

Route the title decision through the resolved runtime border from nvim_win_get_config(winid). Floats that actually have a border now use the native window title, while truly borderless floats keep the fallback overlay title window.

## Problem On `main`, floating oil windows decide between native border titles and the fallback overlay title window by looking only at `config.float.border`. When users leave that setting at `nil` but set Neovim's global `winborder`, oil opens a real bordered float and still creates the fallback overlay title window, so the title overlaps the directory listing. ## Solution Route the title decision through the resolved runtime border from `nvim_win_get_config(winid)`. Floats that actually have a border now use the native window title, while truly borderless floats keep the fallback overlay title window.
Sign in to join this conversation.
No description provided.