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.
This commit is contained in:
Nick Krichevsky
2026-04-22 05:56:23 -04:00
committed by GitHub
parent 09874a8b25
commit e68e769352
6 changed files with 38 additions and 16 deletions

View File

@@ -7499,7 +7499,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: