fix(options): default 'titlestring' shows CWD #39233

Problem:
In the default 'titlestring', if the containing directory is the CWD, it renders as "."

Solution:
Add `:p` to the titlestring.

(cherry picked from commit e68e769352)
This commit is contained in:
Nick Krichevsky
2026-04-22 05:56:23 -04:00
committed by github-actions[bot]
parent b3b5674ac7
commit 4d4e196447
6 changed files with 38 additions and 16 deletions

View File

@@ -7462,7 +7462,7 @@ vim.go.titleold = vim.o.titleold
--- The default (empty) behaviour is equivalent to:
---
--- ```vim
--- set titlestring=%t%(\ %M%)%(\ \(%{expand(\"%:~:h\")}\)%)%a\ -\ Nvim
--- set titlestring=%t%(\ %M%)%(\ \(%{expand('%:p:~:h')}\)%)%a\ -\ Nvim
--- ```
---
--- Example: