From 4d4e196447481d552a7dffeeee9ddf72c3bb2ec1 Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Wed, 22 Apr 2026 05:56:23 -0400 Subject: 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 e68e76935267afbf84bff9fffa69f963ebce0f5a) --- runtime/lua/vim/_meta/options.gen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/vim/_meta/options.gen.lua') diff --git a/runtime/lua/vim/_meta/options.gen.lua b/runtime/lua/vim/_meta/options.gen.lua index fb9f5415eb..b3293059b0 100644 --- a/runtime/lua/vim/_meta/options.gen.lua +++ b/runtime/lua/vim/_meta/options.gen.lua @@ -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: -- cgit v1.3-3-g829e